1234567891011121314151617181920 |
- def json_test():
- # test_dir = os.path.join(ROOT_DIR, "test")
- # os.makedirs(os.path.join(test_dir, "images"))
- # img_dir = os.path.join(test_dir, "images")
- # create_annotations(test_dir,img_dir)
- # val_dir = os.path.join(ROOT_DIR, "val")
- # os.makedirs(os.path.join(val_dir, "images"))
- # img_dir = os.path.join(val_dir, "images")
- # create_annotations(val_dir,img_dir)
- train_dir = os.path.join(ROOT_DIR, "train")
- # os.makedirs(os.path.join(train_dir, "images"))
- img_dir = os.path.join(train_dir, "images")
- create_annotations(train_dir,img_dir)
-
|