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.43k stars 316 forks source link

Colab: Errors & Possible fixes #169

Open Lolimipsu opened 1 year ago

Lolimipsu commented 1 year ago

colab is broken due to google removing cuda 10.1 answered by eyaler

this can be fixed by:

!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')

outdated pip error

pip install pip==23.0.1 (or just install the latest version of pip.)

Lolimipsu commented 1 year ago

FIX FOR OUTDATED SETUP.PY image

The fix for this is to download the setup py from the IperCore repo: https://github.com/iPERDance/iPERCore/blob/main/setup.py

and copy whatever version the latest version of PIP from here https://pypi.org/project/pip/

OR alternatively, download my setup.txt, just rename it to setup.py(note: this will be easily outdated) setup.txt

image

then drag and drop it in colab and copy it's directory image image

Liaoqing-up commented 1 year ago

colab is broken due to google removing cuda 10.1 answered by eyaler

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'

NOTE: This is the recommended version of CUDA now. 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')

outdated pip error

pip install pip==23.0.1 (or just install the latest version of pip.)

cuda10.1 is not available but 11.1 is test ok

Lolimipsu commented 1 year ago

LATEST SAMPLES ARE DELETED

image

Possible fix: using the lastly available sample http://101.32.75.151:10086/samples.zip

or check https://github.com/iPERDance/iPERCore/blob/main/docs/install.md#download-checkpoints-and-samples https://github.com/iPERDance/iPERCore/blob/main/docs/manually_download_datasets.md

Lolimipsu commented 1 year ago

First time running the Colab?

Here are what you need to do: 1 image image image image image

manhvd2103 commented 1 year ago

Screenshot 2023-05-17 112929 Thanks for your share but a got error when a run setup file. Can everyone help me.

10raw commented 1 year ago

i get an error saying module neural renderer not found