Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ task = client.create_multi_image_task(
)
```

##### Limitation

* You can upload up to 250 files in total.

#### Find Task

Find a single task.
Expand Down
5 changes: 5 additions & 0 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,11 @@ def create_multi_image_task(
if not utils.is_image_supported_ext(file_path):
raise FastLabelInvalidException(
"Supported extensions are png, jpg, jpeg.", 422)

if len(contents) == 250:
raise FastLabelInvalidException(
"The count of files should be under 250", 422)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらですが、Readmeのこの辺りに、複数画像プロジェクトの1タスクのファイル数上限について記載いただけますでしょうか?
https://github.com/fastlabel/fastlabel-python-sdk#create-task-2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryoKaz
ありがとうございます!
記載してみました。
6078277

file = utils.base64_encode(file_path)
contents.append({
"name": os.path.basename(file_path),
Expand Down