Skip to content

Commit dec2290

Browse files
committed
Remove commented paths
1 parent 0530202 commit dec2290

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mmda/utils/dataset_utils.py

-2
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ def load_sop(
490490
with Path(cfg_dataset.paths.dataset_path + "text_descriptions_SOP.pkl").open(
491491
"rb"
492492
) as f:
493-
# '/store/omama/datasets/Stanford_Online_Products/bicycle_final/251952414262_2.JPG'
494493
# "The image features a close-up view of a bicycle's suspension system,
495494
# specifically focusing on the front fork and the shock absorber. "
496495
path_text_descriptions = joblib.load(f)
@@ -499,7 +498,6 @@ def load_sop(
499498
path_text[1] = path_text[1].replace(" ", "")
500499
img_paths = [x[0] for x in path_text_descriptions]
501500
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
503501
classes = [img_path.split("/")[-2].split("_")[0] for img_path in img_paths]
504502
obj_ids = [img_path.split("/")[-1].split("_")[0] for img_path in img_paths]
505503
return img_paths, text_descriptions, classes, obj_ids

0 commit comments

Comments
 (0)