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

Fixes issues with Colab being updated to Python 3.10 and CUDA 11.8 #48

Merged
merged 6 commits into from
May 10, 2024

Conversation

ada-ada-ada-art
Copy link

I changed two files in the repo: torch_utils/ops/conv2d_gradfix.py and torch_utils/ops/grid_simple_gradfix.py.

I copied the files from the StyleGAN3 repo, which has received an update to handle new PyTorch versions.

In the Colab training notebook, I also removed all the JAX and PyTorch uninstall stuff, so that this:

#Uninstall new JAX
!pip uninstall jax jaxlib -y
#GPU frontend
!pip install "jax[cuda11_cudnn805]==0.3.10" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
#CPU frontend
#!pip install jax[cpu]==0.3.10
#Downgrade Pytorch
!pip uninstall torch torchvision -y
!pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
!pip install timm==0.4.12 ftfy==6.1.1 ninja==1.10.2 opensimplex

becomes this:

!pip install timm==0.4.12 ftfy==6.1.1 ninja==1.10.2 opensimplex

@persac
Copy link

persac commented Nov 7, 2023

@dvschultz Would you please consider merging this PR? I can confirm that it fixes issue #45. 🙏

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

Successfully merging this pull request may close these issues.

3 participants