Skip to content

RuntimeError: Found 0 images in subfolders of: data/ClothingAttributeDataset/train/ #2

Open

Description

@pisicutza21

Hy! I'm trying to learn machine learning, and from this how to extract from a photo different attributes. I looked through your project, trying to figure out how you do it, but when i'm running it i got this message error RuntimeError: Found 0 images in subfolders of: data/ClothingAttributeDataset/train/, even if i created the folder data/ClothingAttributeDataset/train/, and put images into. can you please tell me, what i'm doing wrong, or what i missed? Thank you :).

Activity

  1. sahnefreak commented on Mar 26, 2018

    @sahnefreak

    Hey! I have the same issue. Do you have any solution yet? Best regards! :)

  2. tlsgb456 commented on Apr 5, 2018

    @tlsgb456

    @pisicutza21 @sahnefreak
    I think we should download 'Clothing Attributes Dataset' on this webpage.
    https://purl.stanford.edu/tb980qz1002

  3. pisicutza21 commented on Apr 10, 2018

    @pisicutza21
    Author

    @tlsgb456 @sahnefreak Did it worked with the dataset from that webpage or you did some changes? Can you please tell me how much ram do you have? I'm asking because i have this error "RuntimeError: $ Torch: not enough memory: you tried to allocate 7GB. Buy new RAM! at /opt/conda/conda-bld/pytorch_1523244252089/work/torch/lib/TH/THGeneral.c:253", i don't know how to fixed it. Thnx :)

  4. tlsgb456 commented on Apr 10, 2018

    @tlsgb456

    @pisicutza21 If you lack the VRAM, you can use small batch size such as 16, 8, 4, 2, 1 because that default batch size is 32.

  5. pisicutza21 commented on Apr 10, 2018

    @pisicutza21
    Author

    @tlsgb456 you are right, thanks for the answers. I changed batch size to 4, i have 1,9 Gb ram free. It's been four hours since i compiled build_models, and the last thing shown is valid Epoch 0/49, it looks like it is blocked. how much time did you need to train the models for the 50 epochs?

  6. tlsgb456 commented on Apr 11, 2018

    @tlsgb456

    @pisicutza21 I use TITAN X, so I can use 32 batch size. 50 epoch train take ... um... approximately 30 min? If you using smaller batch size, you may take more time than my case.

  7. sagarnildass commented on Oct 5, 2020

    @sagarnildass

    The documentation is poor here. Here are the steps to get a good result:

    1. First download the ClothingAttributeDatasetand put it in the data folder.

    2. In the ml_src folder, run the data-prep.ipynb. Don't spilt train test by hand.

    3. In the ml_src/weights folder, create a folder called vgg16-fcn-266-2

    4. Run python ml_src/build_models.py from outside the ml_src folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions