Open yangyang-nus-lv opened 5 years ago
I just used default values and run tag v1.1 with the command:
python main.py --mode train --input ./data/UTKFace
--output./results
I still got the same error.
its works fine but only with 128 as batch size
I solved the problem by setting the 'drop_last' as True in DataLoader in model.py. i.e., train_loader = DataLoader(dataset=train_dataset, batch_size=batch_size, shuffle=True, drop_last = True) valid_loader = DataLoader(dataset=valid_dataset, batch_size=batch_size, shuffle=False, drop_last = True).
Hope it helpful for you.
Hi, when I run this code I got an ValueError, shown as below:
Could this error be solved easily, since I didn't look through your full code so carefully. If it is a silly question, my fault ^_-