File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ Supported following project types:
199199``` python
200200task = client.create_multi_image_task(
201201 project = " YOUR_PROJECT_SLUG" ,
202- name = " sample.jpg " ,
202+ name = " sample" ,
203203 folder_path = " ./sample" ,
204204 annotations = [{
205205 " value" : " annotation-value" ,
@@ -209,6 +209,7 @@ task = client.create_multi_image_task(
209209 " value" : " attribute-value"
210210 }
211211 ],
212+ " content" : " 01.jpg" ,
212213 " points" : [[[
213214 100 ,
214215 100 ,
Original file line number Diff line number Diff line change @@ -251,6 +251,10 @@ def create_multi_image_task(
251251 annotations is a list of annotation to be set in advance. (Optional)
252252 tags is a list of tag to be set in advance. (Optional)
253253 """
254+ if not os .path .isdir (folder_path ):
255+ raise FastLabelInvalidException (
256+ "Folder does not exist." , 422 )
257+
254258 endpoint = "tasks/multi/image"
255259 file_paths = glob .glob (os .path .join (folder_path , "*" ))
256260 contents = []
Original file line number Diff line number Diff line change 88
99setuptools .setup (
1010 name = "fastlabel" ,
11- version = "0.4.0 " ,
11+ version = "0.4.1 " ,
1212 author = "eisuke-ueta" ,
1313 author_email = "eisuke.ueta@fastlabel.ai" ,
1414 description = "The official Python SDK for FastLabel API, the Data Platform for AI" ,
You can’t perform that action at this time.
0 commit comments