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

Random Sampling From Latent Space #14

Open
ZloyTapok987 opened this issue Apr 26, 2022 · 4 comments
Open

Random Sampling From Latent Space #14

ZloyTapok987 opened this issue Apr 26, 2022 · 4 comments

Comments

@ZloyTapok987
Copy link

Hi! Can you share code for Random Sampling From Latent Space experiment?

@ZloyTapok987
Copy link
Author

I'm trying to sample new font via random latent space with this code: https://pastebin.com/m8vyYpXx
But it doesn't work, svg images don't looks like glyphs :(
What I'm doing wrong
Screenshot 2022-04-27 at 01 48 50
?

@yizhiwang96
Copy link
Owner

Hi Zloy!
Thanks for your questions!
Yes, I re-ran my codes and also met your problem. However, I found font-interpolation works well.
Then, I checked my TensorFlow codes (which were used to produce the results in my paper.)
I find kl_beta was set to 0.1 in my TF codes. I think this could be the reason.
I'm busy with my thesis recently and I will try to re-run my Pytorch code with kl_beta=0.1 (or find some other reasons).
It would be appreciated if you help to check if set kl_beta=0.1 works (maybe some other weights need to be finetuned accordingly).
Thank you!

@cravisjan97
Copy link

Hi! I am also facing the same issue. Did changing the KL beta weight work for random font generation?

@yizhiwang96
Copy link
Owner

kl_beta=0.1

Hi Cravis,
Yes, kl_beta=0.1 works for random font generation.
I also noticed that kl_beta=0.01 results in better reconstruction than kl_beta=0.1.
So I think it is a kind of tradeoff and I will upload a checkpoint of kl_beta=0.1.

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