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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Supported following project types:
```python
task = client.create_multi_image_task(
project="YOUR_PROJECT_SLUG",
name="sample.jpg",
name="sample",
folder_path="./sample",
annotations=[{
"value": "annotation-value",
Expand All @@ -209,6 +209,7 @@ task = client.create_multi_image_task(
"value": "attribute-value"
}
],
"content": "01.jpg",
"points": [[[
100,
100,
Expand Down
4 changes: 4 additions & 0 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ def create_multi_image_task(
annotations is a list of annotation to be set in advance. (Optional)
tags is a list of tag to be set in advance. (Optional)
"""
if not os.path.isdir(folder_path):
raise FastLabelInvalidException(
"Folder does not exist.", 422)

endpoint = "tasks/multi/image"
file_paths = glob.glob(os.path.join(folder_path, "*"))
contents = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="fastlabel",
version="0.4.0",
version="0.4.1",
author="eisuke-ueta",
author_email="eisuke.ueta@fastlabel.ai",
description="The official Python SDK for FastLabel API, the Data Platform for AI",
Expand Down