ZiqiaoPeng / SyncTalk

[CVPR 2024] This is the official source for our paper "SyncTalk: The Devil is in the Synchronization for Talking Head Synthesis"
https://ziqiaopeng.github.io/synctalk/
Other
1.08k stars 121 forks source link

cannot compile #148

Open saima2018 opened 1 month ago

saima2018 commented 1 month ago

can anyone please help with this issue? I spent 10 hours on it but still no clue at all. Thanks a lot! When I run pip install ./freqencoder, same with other 3 folders, I always get python setup.py error :

python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] running bdist_wheel running build running build_ext /home/ubuntu/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py:425: UserWarning: There are no x86_64-linux-gnu-g++ version bounds defined for CUDA version 11.8 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building '_freqencoder' extensioncreating /home/ubuntu/masai/algo/SyncTalk/freqencoder/build/temp.linux-x86_64-3.10/home/ubuntu/masai/algo/SyncTalk/freqencoder/src Emitting ninja build file /home/ubuntu/masai/algo/SyncTalk/freqencoder/build/temp.linux-x86_64-3.10/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) 1.11.1.git.kitware.jobserver-1 creating build/lib.linux-x86_64-3.10 x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC /home/ubuntu/masai/algo/SyncTalk/freqencoder/build/temp.linux-x86_64-3.10/home/ubuntu/masai/algo/SyncTalk/freqencoder/src/bindings.o /home/ubuntu/masai/algo/SyncTalk/freqencoder/build/temp.linux-x86_64-3.10/home/ubuntu/masai/algo/SyncTalk/freqencoder/src/freqencoder.o -L/home/ubuntu/.local/lib/python3.10/site-packages/torch/lib -L/usr/local/cuda-11.8/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.10/_freqencoder.cpython-310-x86_64-linux-gnu.so x86_64-linux-gnu-g++: error: /home/ubuntu/masai/algo/SyncTalk/freqencoder/build/temp.linux-x86_64-3.10/home/ubuntu/masai/algo/SyncTalk/freqencoder/src/bindings.o: No such file or directory x86_64-linux-gnu-g++: error: /home/ubuntu/masai/algo/SyncTalk/freqencoder/build/temp.linux-x86_64-3.10/home/ubuntu/masai/algo/SyncTalk/freqencoder/src/freqencoder.o: No such file or directory error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1 [end of output].

############################## my ubuntu system: gcc --version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0. nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:33:58_PDT_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0 NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 pip show torch Name: torch Version: 2.2.2+cu118

zkxd2018 commented 5 days ago

问题解决了么?