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
Training error! #28
Comments
Hi @Byronnar, thank you for your interest in our work. This error is at the end of the first epoch, where in the last batch, you have only one image and BN gives an error, to solve this, please simply set drop_last = True in the dataloaders (or change the batch size / do an if statement to skip the last step if BZ = 1). |
Thank for your reply~ I have set batch_size=2 have solved this problem. But I cannot find where is the dataloaders(Except in train_cam.py), you mean in dataloader in voc.py? |
The error below:
I have added the 'drop_last': True. |
Sorry, I thought you had a problem only at the end of the first epochs (multi gpu training). In your case, I think you are training with only one batch, but the |
Thanks for your reply. |
Are you trying to use it on your dataset? SegmentationClassAug is only specific for VOC2012. |
Yeah, I AM trying to use it on my dataset, but I don't know how to get the unlabeled data, it can be original RGB colorful image? |
whether the custom datasets should as same as SegmentationClassAug? |
No need for SegmentationClassAug, simply use your own dataloader, you'll need to create two dataloaders, one for the supervised dataset and one for the unsupervised dataset. You can create it them any way you like (see closed issues, there is a lot of discussion on the usage of custom datasets). |
Thank you! You mean don't need for image-level data? (in the paper, there arre 9k image-level data in unsupervised section.) |
I used https://github.com/wkentaro/labelme to annotate my own dataset |
I want to train VOC2012, but get the error below:
How should I do? Thank you
The text was updated successfully, but these errors were encountered: