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 the model on my own cutom dataset #13
Comments
Hi, Yes, this is possible, and it should be relatively little effort to implement a custom dataloader. Step 1: Step 2:
Step 3: Step 4:,
to the Things to keep in mind:
Let me know whether this works for you. |
@SushkoVadim Thank you so much. I did what you suggested and got the following error --- Now computing Inception activations for real set --- btw, I am trying to do style transfer from overcast images to rainy images, so I do not have labels images or labels classes, What do you suggest I set the |
@SushkoVadim Update, I changed L156 in Created OASIS_Generator with 78461891 parameters I think it is stuck at iteration 0 ! |
Hi, Our project is mainly designed for semantic image synthesis, and we haven't tested it for general image-to-image translation. You can in principle set For your last message: |
@SushkoVadim Thanks a lot for your comprehensive answer. One minor addition to your Step 2: When copying the content from Ade20kDataset, do not forget to rename the class from Best regards, |
Excuse me. I wanna ask some questions concerning the use of custom datasets. How to define the opt.label_nc? I found that label_nc in your code is different from the introdcation of datasets in paperwithcode(https://paperswithcode.com/dataset/cityscapes). What's more, if my custom dataset's labels are less than the cityscapes (just 29 total, including the class 'others', So I should set the opt.label_nc = 28, semantic_nc = 29 ?), I should define a specific labelcolormap function like cityscapes? Best wishes |
Hi, yes opt.label_nc should be set to the number of semantic classes, and semantic_nc is set to Probably, there exist different versions of Cityscapes, for the one we used we observed 35 classes (link). The colormap is not needed. The dataloader uses a simple representation of label maps with an integer assigned to each pixel. |
Thanks for uploading such a very interesting code. I am wondering if is it possible to train the model on my own custom dataset? if yes, what is the procedure?
The text was updated successfully, but these errors were encountered: