e4s
e4s copied to clipboard
help v2
this time i tried in ubuntu using wsl2 and conda
(e4s) user@LAPTOP-E4D0U85P:~/e4s$ python scripts/face_swap.py --source=example/input/faceswap/source.jpg --target=example/input/faceswap/target.jpg Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1516, in _run_ninja_build subprocess.run( File "/home/user/miniconda3/envs/e4s/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "scripts/face_swap.py", line 16, in
(e4s) user@LAPTOP-E4D0U85P:~/e4s$ conda list
packages in environment at /home/user/miniconda3/envs/e4s:
Name Version Build Channel
_libgcc_mutex 0.1 main conda-forge _openmp_mutex 5.1 1_gnu blas 1.0 mkl conda-forge brotlipy 0.7.0 py38h27cfd23_1003 bzip2 1.0.8 h7b6447c_0 ca-certificates 2023.01.10 h06a4308_0 certifi 2023.5.7 py38h06a4308_0 cffi 1.15.1 py38h5eee18b_3 charset-normalizer 2.0.4 pyhd3eb1b0_0 cryptography 39.0.1 py38h9ce1e76_0 cudatoolkit 11.1.74 h6bb024c_0 nvidia dlib 19.24.0 py38he2161a6_0 conda-forge ffmpeg 4.3 hf484d3e_0 pytorch flit-core 3.8.0 py38h06a4308_0 freetype 2.12.1 h4a9f257_0 giflib 5.2.1 h5eee18b_3 gmp 6.2.1 h295c915_3 gnutls 3.6.15 he1e5248_0 idna 3.4 py38h06a4308_0 imageio 2.28.1 pypi_0 pypi intel-openmp 2021.4.0 h06a4308_3561 jpeg 9e h5eee18b_1 lame 3.100 h7b6447c_0 lazy-loader 0.2 pypi_0 pypi lcms2 2.12 h3be6417_0 ld_impl_linux-64 2.38 h1181459_1 lerc 3.0 h295c915_0 libblas 3.9.0 12_linux64_mkl conda-forge libcblas 3.9.0 12_linux64_mkl conda-forge libdeflate 1.17 h5eee18b_0 libffi 3.4.2 h6a678d5_6 libgcc-ng 11.2.0 h1234567_1 libgomp 11.2.0 h1234567_1 libiconv 1.16 h7f8727e_2 libidn2 2.3.2 h7f8727e_0 liblapack 3.9.0 12_linux64_mkl conda-forge libpng 1.6.39 h5eee18b_0 libstdcxx-ng 11.2.0 h1234567_1 libtasn1 4.16.0 h27cfd23_0 libtiff 4.5.0 h6a678d5_2 libunistring 0.9.10 h27cfd23_0 libuv 1.44.2 h5eee18b_0 libwebp 1.2.4 h11a3e52_1 libwebp-base 1.2.4 h5eee18b_1 lz4-c 1.9.4 h6a678d5_0 mkl 2021.4.0 h06a4308_640 mkl-service 2.4.0 py38h7f8727e_0 mkl_fft 1.3.1 py38hd3c417c_0 mkl_random 1.2.2 py38h51133e4_0 ncurses 6.4 h6a678d5_0 nettle 3.7.3 hbbd107a_1 networkx 3.1 pypi_0 pypi ninja 1.11.1 pypi_0 pypi ninja-base 1.10.2 hd09550d_5 numpy 1.23.5 py38h14f4228_0 numpy-base 1.23.5 py38h31eccc5_0 opencv-python 4.7.0.72 pypi_0 pypi openh264 2.1.1 h4ff587b_0 openssl 1.1.1t h7f8727e_0 packaging 23.1 pypi_0 pypi pillow 9.4.0 py38h6a678d5_0 pip 23.0.1 py38h06a4308_0 pycparser 2.21 pyhd3eb1b0_0 pyopenssl 23.0.0 py38h06a4308_0 pysocks 1.7.1 py38h06a4308_0 python 3.8.16 h7a1cb2a_3 python_abi 3.8 2_cp38 conda-forge pytorch 1.8.2 py3.8_cuda11.1_cudnn8.0.5_0 pytorch-lts pytorch-mutex 1.0 cuda pytorch pywavelets 1.4.1 pypi_0 pypi pyyaml 6.0 pypi_0 pypi readline 8.2 h5eee18b_0 requests 2.28.1 py38h06a4308_1 scikit-image 0.20.0 pypi_0 pypi scipy 1.9.1 pypi_0 pypi setuptools 65.6.3 py38h06a4308_0 six 1.16.0 pyhd3eb1b0_1 sqlite 3.41.1 h5eee18b_0 tifffile 2023.4.12 pypi_0 pypi tk 8.6.12 h1ccaba5_0 torch 1.10.1+cu113 pypi_0 pypi torchaudio 0.10.1+cu113 pypi_0 pypi torchvision 0.11.2+cu113 pypi_0 pypi tqdm 4.65.0 pypi_0 pypi typing_extensions 4.4.0 py38h06a4308_0 urllib3 1.26.15 py38h06a4308_0 wheel 0.38.4 py38h06a4308_0 xz 5.2.10 h5eee18b_1 zlib 1.2.13 h5eee18b_0 zstd 1.5.4 hc292b87_0
what's the GCC version? Similar as #3
(e4s) user@LAPTOP-E4D0U85P:~/e4s$ python Python 3.8.16 (default, Mar 2 2023, 03:21:46) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.
GCC 11.2, I'm on wsl2 so any help regarding downgrading is appreciated
(e4s) user@LAPTOP-E4D0U85P:~/e4s$ conda install -c gouarin gcc-7 Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package libstdcxx-ng conflicts for: python==3.8.16=h7a1cb2a_3 -> libstdcxx-ng[version='>=11.2.0'] gcc-7 -> gmp[version='>=6.1'] -> libstdcxx-ng[version='>=7.2.0|>=7.3.0|>=7.5.0'] python==3.8.16=h7a1cb2a_3 -> libffi[version='>=3.4,<3.5'] -> libstdcxx-ng[version='>=7.5.0']
Package libgcc-ng conflicts for: python==3.8.16=h7a1cb2a_3 -> libgcc-ng[version='>=11.2.0'] python==3.8.16=h7a1cb2a_3 -> libffi[version='>=3.4,<3.5'] -> libgcc-ng[version='>=7.3.0|>=7.5.0']The following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.35=0
- python==3.8.16=h7a1cb2a_3 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
Your installed version is: 2.35
tried to onstall gcc as a package in the conda env itself, didnt work. any tips to install this ??????????
what's the GCC version? Similar as #3
11.2........ any chance you can update it so that it also works with wsl2? or add docker support? from what ive seen people are having issues i mean, im eager excited about trying the code but seems like the only pc this runs in is yours haha ....
Sorry that I have no Windows machine. To be honest, I tested the installation steps with a pure clean Ubuntu environment, but didn’t find this issues…
could you please downgrade your GCC and CUDA to recommended version, then try again?
Sorry that I have no Windows machine. To be honest, I tested the installation steps with a pure clean Ubuntu environment, but didn’t find this issues…
could you please downgrade your GCC and CUDA to recommended version, then try again?
I'll gladly downgrade the cuda, but when it comes to GCC i've looked online and failed to downgrade it, i Know its external to your project but i'd be grateful if you could give me a hand with this.. i also dont know if i have to downgrade is the one from Ubuntu or the one inside the conda environment
(I am using WSL2)
I never tried WSL before. I think you should try to downgrade the GCC of WSL system first.
ive sent 4 hours researching how to do this and failed, it always displays 11.2 so yes in theory "i just have to downgrade" lol but its not that easy, ive been in this position before, wasting tons of time in stuff i know its not gonna work. how about you make a dockerfile? bet you know how to make one, every other serious face swap project also provides one which is why i'm used to wsl2 + docker, what do you say?.......................... otherwise its a no go for people using windows, not even wsl2.............................please