We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9561728 commit c552243Copy full SHA for c552243
general_json2yolo.py
@@ -357,11 +357,20 @@ def merge_multi_segment(segments):
357
return s
358
359
360
+def delete_dsstore(path='../datasets'):
361
+ # Delete apple .DS_store files
362
+ from pathlib import Path
363
+ files = list(Path(path).rglob('.DS_store'))
364
+ print(files)
365
+ for f in files:
366
+ f.unlink()
367
+
368
369
if __name__ == '__main__':
370
source = 'COCO'
371
372
if source == 'COCO':
- convert_coco_json('../../Downloads/Objects365') # directory with *.json
373
+ convert_coco_json('../datasets/coco/annotations', False, True) # directory with *.json
374
375
elif source == 'infolks': # Infolks https://infolks.info/
376
convert_infolks_json(name='out',
0 commit comments