iPERDance / iPERCore

Liquid Warping GAN with Attention: A Unified Framework for Human Image Synthesis
https://iperdance.github.io/work/impersonator-plus-plus.html
Apache License 2.0
2.42k stars 311 forks source link

colab is broken #164

Open eyaler opened 1 year ago

eyaler commented 1 year ago

colab is broken due to google removing cuda 10.1 here

this can be fixed by:

!apt-get -o Dpkg::Options::="--force-overwrite" install cuda-10-1 cuda-drivers
import os
os.environ["CUDA_HOME"] = '/usr/local/cuda-10.1'

however if you want to support modern GPUs as A100 you need cuda 11:

!apt-get -o Dpkg::Options::="--force-overwrite" install cuda-11-1
import os
cuda_home = '/usr/local/cuda-11.1'
os.environ["CUDA_HOME"] = cuda_home
with open(os.path.join(cuda_home, 'version.txt'), 'w') as f:
  f.write('CUDA Version 11.1')

I couldn't figure out how to install cudnn, but it works. see e.g. my accessible colab: https://colab.research.google.com/github/eyaler/avatars4all/blob/master/ganivut.ipynb

Lolimipsu commented 1 year ago

Thank you for raising this issue @eyaler it was very helpful. this should be pinned or at least put into the colab.