-
Notifications
You must be signed in to change notification settings - Fork 35
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
Do you have any suggestion on how to implement this model for 2D infinite generation? #10
Comments
Hi! In my head, it was supposed to look the following way. You sample 9 anchors and assemble them into a 3x3 grid (right now there are 3 anchors sampled that are assembled into a 1x3 grid). This grid is projected onto the coordinates plane in such a way that its left lower point is at location (-d, -d) and its upper right point is at (d, d). Here, Now, you randomly sample a square frame on this grid, render it and pass to the discriminator. For each coordinates location, you interpolate the styles codes from the above 3x3 anchors grid. Note that it will be quite slow (i.e. ~2x) to train compared to the current 1D implementation if one does not implement a specialized CUDA kernel for the fused interpolate+multiply operation. |
It completely make sense what you say. Thanks! By the way, congrats for the manuscript, is super interesting and very well written, I enjoyed it a lot. I will try not to spam here, but if I have some doubts with the implementation I'll come around. Cheers! |
I agree that the code is not too transparent and might take a lot of time to get one's head around. I checked several places that I think are the main places to change and think about the following ones:
Also, it might be useful to think what tricks can be borrowed from the recent Alias-Free GAN which is also a coordinate-based GAN model. Feel completely free to ask any further questions if you'll have some! |
Hi @universome thank you very much for your hints. Thank you again for your answer, I think that it was what I needed to advance. Also I will check the Alias-Free GAN. |
Have you made any progress on the 2D version? I'm also interested |
Not really, I have some drafts notebooks in which I was testing stuff, but still very far from something that can be shared or a PR. I don't have much free time lately... I hope to be able to continue this soon, but I don't know when I am going to be able. |
I was wondering if you have any suggestion on how to implement the code for 2d image generation such and satellite images or 3D panorama images.
The text was updated successfully, but these errors were encountered: