Skip to content

Commit

Permalink
add bollworm count
Browse files Browse the repository at this point in the history
  • Loading branch information
okotaku committed Jan 11, 2023
1 parent 265fced commit b7ad7f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/dataset_converters/prepare_bollworm_count_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def df2coco(imgs):
img_infos = []
img_id = 0
for img_path in tqdm(imgs):
#print(f'data/bollworm_count/images/{img_path}')
img = cv2.imread(f'data/bollworm_count/images/{img_path}')
img_info = dict(
id=img_id,
Expand All @@ -43,7 +42,7 @@ def main():
img_ids = df.image_id_worm.unique()

train_coco = df2coco(img_ids)
mmengine.dump(train_coco, f'data/bollworm_count/dtest.json')
mmengine.dump(train_coco, 'data/bollworm_count/dtest.json')


if __name__ == '__main__':
Expand Down

0 comments on commit b7ad7f0

Please sign in to comment.