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

How to Train on Custom dataset with different Image size #6

Open
Hidayat722 opened this issue Jun 17, 2020 · 3 comments
Open

How to Train on Custom dataset with different Image size #6

Hidayat722 opened this issue Jun 17, 2020 · 3 comments

Comments

@Hidayat722
Copy link

Hi @WillSuen

First of thank you very much for such an amazing work highly appreciated, i would like to train the model on custom dataset with different image size such as 2048X1536, so far i know the current model only support 128X128, Can you please guide me how can i create my dataset plus what changes do i need to train it on custom image size.
Thanks in Advance

@WillSuen
Copy link
Owner

Hi, thanks for your interests. If you want to train image with difference size, you may need to add more resblock in G and D. In G, each resblock upsample feature size by 2. In our experiments, high resolution image (we tried with 512x512) requires much more GPU memory and training time. So due to limitation of our hardware, we did not get a perfect model for high resolution images.

@Hidayat722
Copy link
Author

@WillSuen thanks for the details. How can i train it on custom dataset. So far i think i need to provide the bounding boxes same as done for object detection but i am not sure about the background. can you please guide me how to prepare my own dataset any help would be appreciated.
Thanks in Advance.

@WillSuen
Copy link
Owner

Hi, for the dataset preparation, you can check the details in cocostuff_loader.py and vg.py. The background is added as a bounding box (0, 0, 1.0, 1.0)

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