SimSwap icon indicating copy to clipboard operation
SimSwap copied to clipboard

Incompatible with new GPU

Open ssbugman opened this issue 2 years ago • 4 comments

GeForce RTX 3080 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37

New version of pytorch reports about conflict and not installing.

ssbugman avatar Jun 13 '22 10:06 ssbugman

Did you try to install this pytorch version https://pytorch.org/get-started/previous-versions/#v180 ? conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge

BeaverInGreenland avatar Jun 13 '22 12:06 BeaverInGreenland

Yes and I got this error with it. Now I am installed new version and getting AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'.

ssbugman avatar Jun 13 '22 15:06 ssbugman

Now removed anaconda and did clean install. Instead string from preparation used your command conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge Didn't step "(option): pip install onnxruntime-gpu"

C:\ProgramData\Anaconda3\envs\simswap\lib\site-packages\torch\serialization.py:656: SourceChangeWarning: source code of class 'torch.nn.parallel.data_parallel.DataParallel' has changed. Tried to save a patch, but couldn't create a writable file DataParallel.patch. Make sure it doesn't exist and your working directory is writable. warnings.warn(msg, SourceChangeWarning) Traceback (most recent call last): File "test_one_image.py", line 35, in model = create_model(opt) File "P:\SimSwapmain\models\models.py", line 18, in create_model model.initialize(opt) File "P:\SimSwapmain\models\fs_model.py", line 67, in initialize netArc_checkpoint = torch.load(netArc_checkpoint) File "C:\ProgramData\Anaconda3\envs\simswap\lib\site-packages\torch\serialization.py", line 593, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "C:\ProgramData\Anaconda3\envs\simswap\lib\site-packages\torch\serialization.py", line 772, in _legacy_load result = unpickler.load() File "C:\ProgramData\Anaconda3\envs\simswap\lib\site-packages\torch\serialization.py", line 720, in persistent_load _check_container_source(*data) File "C:\ProgramData\Anaconda3\envs\simswap\lib\site-packages\torch\serialization.py", line 639, in _check_container_source f.write(lines) File "C:\ProgramData\Anaconda3\envs\simswap\lib\encodings\cp1251.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\xe0' in position 1153: character maps to

ssbugman avatar Jun 13 '22 16:06 ssbugman

Added encoding="utf-8" to line 635 in serialization.py. Getting lot of warnings about changed file but at least model started to do something. But works only for "Simple face swapping for already face-aligned images" option others getting FileNotFoundError: [Errno 2] No such file or directory: './parsing_model/checkpoint\79999_iter.pth' This file not exist and nothing in preparation instructions creates it.

It seems setup instruction obsolete and now missing important file. Found and downloaded it and trouble got solved.

ssbugman avatar Jun 13 '22 18:06 ssbugman