SimSwap icon indicating copy to clipboard operation
SimSwap copied to clipboard

Torch not compiled with CUDA enabled

Open a2231698193 opened this issue 2 years ago • 12 comments

Torch not compiled with CUDA enabled 这

a2231698193 avatar Jul 26 '21 02:07 a2231698193

Do everything exactly as it says here: https://github.com/neuralchen/SimSwap/blob/main/docs/guidance/preparation.md

ExponentialML avatar Jul 26 '21 05:07 ExponentialML

no GPU How do you use it? cpu

a2231698193 avatar Jul 26 '21 05:07 a2231698193

完全按照这里说的做所有事情:https : //github.com/neuralchen/SimSwap/blob/main/docs/guidance/preparation.md

no GPU How do you use it? cpu

a2231698193 avatar Jul 26 '21 05:07 a2231698193

no GPU How do you use it? cpu

At the end of the link provided by ftaker887:

We expect users to have GPU with at least 3G memory. For those who do not, we provide [Colab Notebook implementation].

woctezuma avatar Jul 26 '21 06:07 woctezuma

no GPU How do you use it? cpu

Just make a few changes and you can run without GPU. No NVIDIA card required or any card, just 3Gb RAM (or less) and any processor, you should build or find CPU-compatible dependencies

andrewrush avatar Jul 26 '21 09:07 andrewrush

2Gb Nvidia GPU working for me. CPU will be sloooooow...

instant-high avatar Jul 26 '21 09:07 instant-high

Torch not compiled with CUDA enabled 这

If you don't have compatible GPU, just use CPU. Install dependencies:

conda create -n simswap python=3.6 conda activate simswap conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cpuonly -c pytorch pip install --ignore-installed imageio pip install insightface==0.2.1 onnxruntime moviepy

Then place this powershell script in SimSwap directory and run. Script makes SimSwap CPU-compatible.

andrewrush avatar Jul 26 '21 09:07 andrewrush

2Gb Nvidia GPU working for me. CPU will be sloooooow...

Yes, GPU backend is much better. But Windows users with AMD and Intel cards has no other choice. AMD cards runs in PyTorch with ROCm (Linux only). Colab usage only with quota limits. Kaggle-way cause an instant ban of profile.

andrewrush avatar Jul 26 '21 09:07 andrewrush

@andrewrush can you reupload the powershell script, the link seems to be dead Also To the maintainers, an adjustment to the documentation, that these paths exist would be nice

Hendiadyoin1 avatar Sep 11 '21 17:09 Hendiadyoin1

The link works fine here.

woctezuma avatar Sep 11 '21 17:09 woctezuma

Ahh Adblocker was getting in my way..

Hendiadyoin1 avatar Sep 11 '21 18:09 Hendiadyoin1

Thanks @andrewrush! I could finally make it work! You are a king 😀

illtellyoulater avatar Dec 09 '21 09:12 illtellyoulater