-
Notifications
You must be signed in to change notification settings - Fork 340
-
Notifications
You must be signed in to change notification settings - Fork 340
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
truncation trick #62
Comments
Thank you very much. I will reflect your reporting ASAP. Best, Minguk |
Let me know if you have fixed it. |
Hi, Thank you so much. I have corrected the wrong implementation of truncation trick. Please refer to "src/utils/sample.py" for more details. |
|
also, i think using What do you think? |
Hi, Thank you for your suggestion. I think that the method you suggested is reasonable. However, I already conducted BigGAN-Mod/ContraGAN + ICR experiments using the "latents + pertub*sample_normal" way. We have also decided to keep StudioGAN code in its current state in order to exactly implement the original ICR regularization. Nice suggestion and thank you. Best, Minguk |
Yes. I see. The experimental results on large-scale image datasets are very expensive. |
Hi, It seems that the truncated_normal returns a ndarray rather than a tensor. |
Thank you. I have fixed the problem above. Best, Minguk |
@mingukkang this function may want to return |
Dear author,
I am reading your implementation on latent sampling from
sample.py
(function:sample_latents
). For a gaussian sampling as implemented bylatents = torch.randn(batch_size, dim, device=device)/truncated_factor
.I notice that the above implementation is not a standard truncation trick, which is defined by
The Truncation Trick is a latent sampling procedure for generative adversarial networks, where we sample from a truncated normal (where values which fall outside a range are resampled to fall inside that range)
The text was updated successfully, but these errors were encountered: