You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
@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.
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](https://user-images.githubusercontent.com/23288056/51071283-7e7d9200-1689-11e9-9ff8-f1a3b0b3bcc7.png)
The text was updated successfully, but these errors were encountered: