File tree 1 file changed +0
-2
lines changed
1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,6 @@ def load_sop(
490
490
with Path (cfg_dataset .paths .dataset_path + "text_descriptions_SOP.pkl" ).open (
491
491
"rb"
492
492
) as f :
493
- # '/store/omama/datasets/Stanford_Online_Products/bicycle_final/251952414262_2.JPG'
494
493
# "The image features a close-up view of a bicycle's suspension system,
495
494
# specifically focusing on the front fork and the shock absorber. "
496
495
path_text_descriptions = joblib .load (f )
@@ -499,7 +498,6 @@ def load_sop(
499
498
path_text [1 ] = path_text [1 ].replace (" " , "" )
500
499
img_paths = [x [0 ] for x in path_text_descriptions ]
501
500
text_descriptions = [x [1 ] for x in path_text_descriptions ]
502
- ### img_path example: /store/omama/datasets/Stanford_Online_Products/bicycle_final/251952414262_2.JPG
503
501
classes = [img_path .split ("/" )[- 2 ].split ("_" )[0 ] for img_path in img_paths ]
504
502
obj_ids = [img_path .split ("/" )[- 1 ].split ("_" )[0 ] for img_path in img_paths ]
505
503
return img_paths , text_descriptions , classes , obj_ids
You can’t perform that action at this time.
0 commit comments