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 use custom dataset for training? #1

Closed
yongshuo-Z opened this issue May 4, 2021 · 1 comment
Closed

How to use custom dataset for training? #1

yongshuo-Z opened this issue May 4, 2021 · 1 comment

Comments

@yongshuo-Z
Copy link

Hi,

Thanks for the super nice work!! I wonder what modifications I should do if I want to use my own dataset? Suppose I have a source domain dataset A with corresponding images/mask, and target domain dataset B with corresponding images/mask. What folder should I put them? Any advice will be appreciated! Thanks.

By the way, have you tried training the model in a relatively smaller dataset, e.g. 10K images? Would the model still achieve such good performance?

@arnike
Copy link
Collaborator

arnike commented May 7, 2021

Hi @yongshuo-Z,

what modifications I should do if I want to use my own dataset?

In short, you need to define a new task using cfg.TRAIN.TASK. You will need to modify the code slightly by adding new cases to specify your new training and validation data. Just search for the occurences of cfg.TRAIN.TASK in the code and you'll see. You will then place your data in data/<your dataset>, the train/val file lists will have paths like <your dataset>/<path to the image>[space]<your dataset>/<path to ground truth>.

By the way, have you tried training the model in a relatively smaller dataset, e.g. 10K images? Would the model still achieve such good performance?

This size is comparable to the standard UDA setup we used. So, yes, in terms of the dataset size this should not be a problem.

Hope this helps.
Nikita

@arnike arnike closed this as completed May 7, 2021
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