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

not training #644

Open
tryfonaskam opened this issue Jul 27, 2024 · 6 comments
Open

not training #644

tryfonaskam opened this issue Jul 27, 2024 · 6 comments

Comments

@tryfonaskam
Copy link

tryfonaskam commented Jul 27, 2024

in google colaboration(free)
after going through this tutorial and this guide i start the "Perform Initial Training" and i get this error /content/stylegan2-ada-pytorch/torch_utils/ops/conv2d_gradfix.py:55: UserWarning: conv2d_gradfix not supported on PyTorch 2.3.1+cu121. Falling back to torch.nn.functional.conv2d(). warnings.warn(f'conv2d_gradfix not supported on PyTorch {torch.__version__}. Falling back to torch.nn.functional.conv2d().')

@tryfonaskam tryfonaskam changed the title not training not training Jul 28, 2024
@Neilstid
Copy link

Neilstid commented Aug 5, 2024

You should retry with an older version of pytorch and see if it still appears. The recommended version of pytorch for this repo is pytorch=1.9.1. I personally use pytorch=1.13.1 and it works fine too. Downgrading to pytorch 1.xx.x should fix the problem. Hope it will help you :)

@tryfonaskam
Copy link
Author

I am going to try this and share my results

@tryfonaskam
Copy link
Author

i did downgrade my pytorch version to 1.13.1 and now i am geting this error AttributeError: module 'scipy.linalg' has no attribute 'tril'
i also want to say this is not the only error i get this 2024-08-05 11:20:30.541072: W external/org_tensorflow/tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia and this /content/stylegan2-ada-pytorch/torch_utils/ops/conv2d_gradfix.py:55: UserWarning: conv2d_gradfix not supported on PyTorch 2.3.1+cu121. Falling back to torch.nn.functional.conv2d(). warnings.warn(f'conv2d_gradfix not supported on PyTorch {torch.__version__}. Falling back to torch.nn.functional.conv2d().')

@Neilstid
Copy link

Neilstid commented Aug 5, 2024

First the scipy error can be fixed by downgrading it to <=1.12.0 (octo-models/octo#71)

The second error is related to a cuda error. More details here:

If you have not done it yet, you should get cudatoolkit to solve this (conda install cudatoolkit). However, if you already have, look at the ressource above, they might help.

I'm quite surprise about the third error telling the pytorch version is 2.3.1 :/ may be cached data? But I think if you run:
import torch print(torch.__version__)

this will likely return you 2.3.1+cu121 :/

@tryfonaskam
Copy link
Author

the pytorch version is not staying the same for some reason I will take a look at the links you provided to me and maybe do some troubleshooting myself if I have any updates I will post them here

@tryfonaskam
Copy link
Author

I tried a lot of stuff changing settings but nothing is working.If anyone finds a solution pls comment on this

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

2 participants