Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path_names[3] = path_names[3].replace('_', '') #18

Open
tasinislam21 opened this issue Aug 19, 2022 · 3 comments
Open

path_names[3] = path_names[3].replace('_', '') #18

tasinislam21 opened this issue Aug 19, 2022 · 3 comments

Comments

@tasinislam21
Copy link

I have a problem splitting the train/test dataset using generate_fashion_datasets.py. It says:

File "util/generate_fashion_datasets.py", line 55, in make_dataset
path_names[3] = path_names[3].replace('_', '')
IndexError: list index out of range

@JasbirCodeSpace
Copy link

getting the same error while splitting the dataset. @BadourAlBahar @fyviezhao please have a look

@jmahajan117
Copy link

Any updates on this? I'm getting this error as well. @BadourAlBahar ?

@Sutongtong233
Copy link

Sutongtong233 commented Jan 17, 2024

I have the same problem and solve it. Maybe the reason is the different version of test and train.lst file.
For me, after path_names = path.split('/'), path_names = ['DATASET', 'DeepFashion_highres', 'img_highressubset', 'MEN', 'Denim', 'id_00000080', '01_3_back.jpg']
The target image name in test and train.lst file: "fashion/MEN/Denim/id_00000080/04_4full.jpg (for [0/1/2/3/4]"
so, it should be path_names[2:] instead of path_names[4:], and delete the line del path_names[1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants