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

Preparing images data #28

Open
Ridam2k opened this issue Apr 3, 2021 · 3 comments
Open

Preparing images data #28

Ridam2k opened this issue Apr 3, 2021 · 3 comments

Comments

@Ridam2k
Copy link

Ridam2k commented Apr 3, 2021

Hi
I'm having trouble preparing the images downloaded from DeepFashion so that they match the entries in train.lst and test.lst. The downloaded data contains images organised in a number of sub-folders, and even on flattening the directory the image names don't match the train.lst and test.lst values.
Also, the google drive link provided for generated images contains only testing images.
Any help regarding how to proceed further would be greatly appreciated!

@lining-7
Copy link

Have you solved this problem? I had the same problem。

@sandammeer
Copy link

Ive got the same problem

@confifu
Copy link

confifu commented Jun 11, 2021

You need to get rid of the _ after id and the last _ .
Assuming parent directory is named fashion as mentioned earlier, in ubuntu I did this:

  • find fashion -type f -exec sh -c 'new=$(echo "{}" | tr -d "/"|sed s/id_/id/); mv "{}" "$new"' \; : To flatten the directory fashion and get rid of _ after id.
  • for f in *.jpg; do mv "$f" "$(echo "$f" | sed 's/\(.*\)_/\1/')"; done : To get rid of the last _

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