Skip to content

Commit 32166b8

Browse files
authored
Merge pull request #237 from fastlabel/fix/236
自動アノテーション実行時のモデル特定のためalgorithm_typeパラメータを追加
2 parents 33b5e35 + d51ac80 commit 32166b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,6 +2203,7 @@ The folder structure inside the ZIP file is as follows
22032203
```
22042204

22052205
### Export Camera Calibration and Image
2206+
22062207
```python
22072208
appendix_data = client.get_appendix_data(
22082209
project="YOUR_PROJECT_SLUG"
@@ -2217,6 +2218,7 @@ appendix_data = client.get_appendix_data(
22172218
```
22182219

22192220
Result data
2221+
22202222
```
22212223
[{
22222224
id: uuid
@@ -3496,6 +3498,7 @@ auto_annotation_job = client.execute_auto_annotation_job(
34963498
// Other built-in models require annotation class mapping.
34973499
// See: https://fastlabel.notion.site/cf3f006766d742d5ae25ca4200fa19b4
34983500
// If you want to use the custom model, please fill out model name.
3501+
algorithm_type: "object_detection", // optional, "object_detection", "ocr" or "image_classification"
34993502
update_existing: False, // optional, default: False
35003503
confidence_threshold: 0.4, // optional, default: 0.4
35013504
use_tta: False, // optional, default: False

fastlabel/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4731,6 +4731,7 @@ def execute_auto_annotation_job(
47314731
self,
47324732
project: str,
47334733
model_name: str,
4734+
algorithm_type: str = None,
47344735
update_existing: bool = False,
47354736
confidence_threshold: float = 0.4,
47364737
use_tta: bool = False,
@@ -4743,6 +4744,7 @@ def execute_auto_annotation_job(
47434744
47444745
project is slug of your project (Required).
47454746
model_name is name of the model (Required). You can choose Japanese or English name.
4747+
algorithm_type is used to identify the model. algorithm_type can be 'object_detection' or 'ocr' or 'image_classification'(Optional).
47464748
update_existing is whether to update existing annotations (Optional).
47474749
confidence_threshold is a threshold of confidence (Optional).
47484750
use_tta is whether to use test time augmentation (Optional).
@@ -4754,6 +4756,7 @@ def execute_auto_annotation_job(
47544756
payload = {
47554757
"project": project,
47564758
"modelName": model_name,
4759+
"algorithmType": algorithm_type,
47574760
"updateExisting": update_existing,
47584761
"confidenceThreshold": confidence_threshold,
47594762
"useTTA": use_tta,

0 commit comments

Comments
 (0)