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

Reproducing demo models #21

Open
yosh7 opened this issue May 12, 2020 · 7 comments
Open

Reproducing demo models #21

yosh7 opened this issue May 12, 2020 · 7 comments

Comments

@yosh7
Copy link

yosh7 commented May 12, 2020

Hi, kudos for an awesome project !
I managed to run this using tf 1.13.1 and works perfectly.
However, when trying to train I get poor results , no where near the pre-trained models.
After trying with the defaults , I also tried changing some of the hyperparameters, eg. content/tv/style weights , learning rate, batch sizes.
I see that learn rate and batch sizes have significant effect on end results ,but can't reproduce your models.
Can you please publish the parameters used for training ? style image sizes ? any other modifications to the code that can help improve results ?

@dakshvar22
Copy link

Hi @yosh7 , were you able to re-produce the pre-trained models?

@yosh7
Copy link
Author

yosh7 commented Jul 6, 2020

Yep. I installed everything from scratch, Linux, cuda, cudnn (this one's important!) using latest packages for everything and got good results. I assume there was a package compatibility issue before, which is strange as the project ran with no errors, just produced bad results.
@dakshvar22

@dakshvar22
Copy link

dakshvar22 commented Jul 6, 2020 via email

@yosh7
Copy link
Author

yosh7 commented Jul 7, 2020

TF2. And now that I'm thinking of it you may also need to fix the code imports. Use:
Import tensorflow.compat.v1 as tf
In all TF imports.

@dakshvar22
Copy link

dakshvar22 commented Jul 9, 2020

@yosh7 I think just the import won't be enough as I am running into some other errors as well when I upgrade to TF 2.2 .Would you be able to share your updated TF2 code?

@yosh7
Copy link
Author

yosh7 commented Aug 3, 2021 via email

@guyash
Copy link

guyash commented Aug 4, 2021

@yosh7
Does it mean you got the same outputs when running the pre-trained models and the models you trained by yourself on the given style images?
If so, can you please tell me what Cuda & tfgpu packages you used?
Also, I understand you used the default parameters for training, right?

Thank you so much!

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

3 participants