-
Notifications
You must be signed in to change notification settings - Fork 3
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
RuntimeError: derivative for aten::grid_sampler_2d_backward is not implemented #4
Comments
Hello! Warning First of all, know that training a model on Google Colab is painful, it is much more convenient to use paid platforms if you don't want to deal with sessions closing inadvertently, frequently resuming training, machines which are not powerful, etc. Important Second, I did not have time to post the results which I had obtained. From what I can remember, they looked like the ones in my other repositories at Tip Third, there may be better methods nowadays, either via a newer version of StyleGAN or with diffusion models.
I will have a look.
This is done to perform transfer learning from FFHQ trained at 256x256. See the documentation by Nvidia at: Transfer learning is not mandatory, but it may help reaching a satisfying result without using too much computation time. This is mostly relevant if the original dataset (here, FFHQ, which contains faces) is similar to your own dataset (e.g. banners of Steam games which feature a single prominent face). For the GIF illustration shown on the README, you can see projections obtained "with a network pre-trained by Nvidia on the |
Alright, I see the same error message as you saw.
As well as a few warnings:
And many times:
And a few times:
|
Related issues:
Related pull request, with a simple fix which may work: It seems that one has to use an earlier version of PyTorch (version 1), while version 2 is installed by default on Colab nowadays. |
Hi Woctezuma, Thanks a lot for your response. I saw Jeff Heaton training his GANs on Colab Pro. Do you mean this with a paid platform? If not wich would you recommend? Thanks ! Leandre Sassi |
I found the solution here dvschultz/stylegan2-ada-pytorch#45 (comment) Thanks again. Maybe this could be helpfull to update your colab! Have a good day, Leandre Sassi |
Hello!
I have only had some experience with OVH's AI Training and AI Notebooks, as I had a chance to try their platform for free when they were beta-testing their service near the official launch. I don't have any experience with other platforms, so it is not sufficient knowledge to recommend one over another. 😅
Thank you! I will have a look at: as well as:
Have a nice day! |
For info, the following commit: fixes this warning which appeared many times:
|
Alright, I believe the notebook works now. I am not sure if one has to downgrade the PyTorch version. |
No need to Downgrade Python or PyTorch ;) Just trained a model and it went all good. |
Hi Woctezuma,
thanks for your repo,
In the cell below, after running it with your custom datasets I get the error posted in the title of my Issue.
Also, do you really need to give it a resume file when you want to train a model for the first time?
Thanks for your help,
L.
The text was updated successfully, but these errors were encountered: