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

Error when load my dataset #21

Closed
Haoyanlong opened this issue Jan 12, 2019 · 2 comments
Closed

Error when load my dataset #21

Haoyanlong opened this issue Jan 12, 2019 · 2 comments

Comments

@Haoyanlong
Copy link

Haoyanlong commented Jan 12, 2019

I want to train the model by ImageNet dataset. I organize these training images path into ImageNet_train.flist,and I set the MODEL=1, MASK=1. I have the follow bug when load the dataset, but I test the size of inputed images as follows. Is it necessary to define the collate_fn function in the DataLoader? Could you help me? Thank you very much!
image

image

@knazeri
Copy link
Owner

knazeri commented Jan 12, 2019

@Haoyanlong It's not exactly clear to me where the bug is, but the last error message about dimension 1 of the tensor might suggest that some of your training set images might be grayscale and cannot be stacked with color images! I'm just speculating here, finding the exact error might need more investigation!
You do not need collate_fn function in DataLoader.

@Haoyanlong
Copy link
Author

@knazeri OK,I see!Thank you!

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

2 participants