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 can i use the code on my own dataset. if it's necessary to modify the code carefully myself? #47

Open
xbowlove opened this issue Aug 7, 2023 · 1 comment

Comments

@xbowlove
Copy link

xbowlove commented Aug 7, 2023

I'd like to train the model on my own dataset.but i don't know how to use the code to train it. do i need to read the code carefully to modify the code to train it. or if i can just use the config file or command without to read the detailed code? time is really tight so I perfer if someone can help me answer this question.

@xbowlove
Copy link
Author

xbowlove commented Aug 9, 2023

well, here is an unofficial solution to this problem. I finally find a way to load your dataset on the code.
first, you can find get_loaders_eval function in dataset.py and add your dataset config in it, mind you are supposed to write your Dataset class carefully and write your transforms for image. then, you should go to AutoEncoder class in model.py to modify the value of self.input_size to your input images' width or height. then you can train your model on your own dataset just need to write the command according to the authors.

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

1 participant