self-conditioned-gan icon indicating copy to clipboard operation
self-conditioned-gan copied to clipboard

training with custom dataset

Open mhyeonsoo opened this issue 3 years ago • 2 comments

Hello,

Thanks for the great idea. I am now trying to train the model with my own dataset which has 1 class. Can you briefly guide me how to / what to modify for training own dataset?

What I've changed is,

1. edited config by coping imagenet configs and changing number of classes / name in it.
2. added class for loading my own dataset in inputs.py script

Any other things should be required?

thank you

mhyeonsoo avatar Apr 14 '21 01:04 mhyeonsoo

Yes, changing the config by changing data['type'] and changing the number of classes to 1 should do it.

The class that you write should be a torch.data.Dataset class.

stevliu avatar Apr 14 '21 13:04 stevliu

@mhyeonsoo How did you do it? Did you train successfully later?thanks a lot.

woshichunge12 avatar Jun 15 '21 12:06 woshichunge12