-
Notifications
You must be signed in to change notification settings - Fork 25
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
Code and training issues #4
Comments
|
InfinityGAN.yaml |
That's weird. Could you run it a second or third time and see if that repeatedly happens? And you may disable the diveristy_z_loss in the .yaml config to see if that indeed avoids the issue.
Note: We originally use the angular one since the scale of distance in local latent space and feature space is different, and we observe a slight improvement with such a design. But the L1/L2 implementation should achieve a similar goal without numerical issues. |
OK,I will try it. |
Line 580 in 86e4715
I'm sorry, but I have to ask you about a question. I've debugged the code up to L580 (forward function), but I still don't understand what the implementation of Figure 3 (Padding-Free Generator) is. infinityGAN/models/infinitygan_generator.py Line 107 in 86e4715
As I understand it, it's just concatenate feature and coords on channel dim. But, How does it achieve the goal of seamless? |
The coords are only used in the structure synthesizer. In the paper Figure 3, if you use other types of padding, the generator learns to rely on that positional information, and therefore the independently generated patches have different positional information compared to synthesizing at once. The padding-free generator removes that incorrect positional info from padding (no padding in the generator, but we still make sure it still maintains a large receptive field in the local latent space), and explicitly provides consistent positional info via the coordinates. |
As shown in the fig3(b), the feature map seems padded by coords(XYZ), but in the code, coords and feature map are concatenated along channel dim. This is my puzzle. 😭 |
Sorry, in fig3, XYZ is mistaken for coords. XYZ are actually features. |
Yes, you are mostly correct.
Remind that Z_local is of shape [B, C, H, W] (which has the same shape/size as the coordinates, so you can think they are working in a similar way, but carrying different types of information), so they have overlaps between adjacent patches. |
OK,thanks! |
Hi, |
infinityGAN/train.py
Lines 365 to 366 in 86e4715
logs:
WARNING:root:NaN or Inf found in input tensor.
[*] EXP: InfinityGAN; d: nan; g: 2.42; r1: 0.01; ; mean path: 0.01:
and i found diversity_z_loss = nan
The text was updated successfully, but these errors were encountered: