Open urimerhav opened 2 years ago
@BachiLi Trying to follow up on this. If you could point out any Amazon machine image or setup instructions for a GPU machine that works (what CUDA version, hardware, pytorch version etc) - I'd really appreciate it!
I have same problem, cuda version 10.1 torch version 1.7.1 hardware amd R7-5800h RTX 3060 i tried to run CLIPasso at my computer with ubuntu 22.04 sorry about the grammar my English is not good
running install_lib
running build_py
running build_ext
-- pybind11 v2.6.0 dev
CMake Warning (dev) at /home/dxl/anaconda3/envs/CLP/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the
...
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "/home/dxl/anaconda3/envs/CLP/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2.
I have same problem too.
raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2.
I solved this problem on ubuntu20.04 cuda11.3 torch1.12.1 cmake3.22.1(it's important)
For me, conda create -n diffvg python=3.7.5 tensorflow=1.15 , and the same as ubuntu20.04 cuda11.3 torch1.12.1.
same problem
I solved the problem by downgrading gcc. It turns out that cmake build doesn't work well with versions later than 8. following this link I solved it by: sudo apt remove gcc sudo apt-get install gcc-7 g++-7 -y sudo ln -s /usr/bin/gcc-7 /usr/bin/gcc sudo ln -s /usr/bin/g++-7 /usr/bin/g++ sudo ln -s /usr/bin/gcc-7 /usr/bin/cc sudo ln -s /usr/bin/g++-7 /usr/bin/c++
I solved this problem on ubuntu20.04 cuda11.3 torch1.12.1 cmake3.22.1(it's important)
My environment is a little different from yours(cuda11.6). In my case, I could run cmake --build ...
script successfully in shell but the subprocess.check_call
always return with 2. So I changed it to subprocess.call
. Everything looks good so far.
I solved the problem by downgrading gcc. It turns out that cmake build doesn't work well with versions later than 8. following this link I solved it by: sudo apt remove gcc sudo apt-get install gcc-7 g++-7 -y sudo ln -s /usr/bin/gcc-7 /usr/bin/gcc sudo ln -s /usr/bin/g++-7 /usr/bin/g++ sudo ln -s /usr/bin/gcc-7 /usr/bin/cc sudo ln -s /usr/bin/g++-7 /usr/bin/c++
This one allowed me to run in Ubuntu 22.04 by doing
sudo nano /etc/apt/sources.list
add the line: deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe
sudo apt update
and then doing your thing
I am using Ubuntu20.02(WSL2) + cuda12.2 and meet the same problem:
Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2.
But I found there is no problem with cmake command.
So I just simply tried:
cmake --build . --config Debug -- -j8
Comment Line 65 in setup.py and then
python setup.py install
conda install -c conda-forge gcc=12.1.0
I successfully run the demos.
I have same problem, cuda version 10.1 torch version 1.7.1 hardware amd R7-5800h RTX 3060 i tried to run CLIPasso at my computer with ubuntu 22.04 sorry about the grammar my English is not good
running install_lib running build_py running build_ext -- pybind11 v2.6.0 dev CMake Warning (dev) at /home/dxl/anaconda3/envs/CLP/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message): Policy CMP0127 is not set: cmake_dependent_option() supports full Condition Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the ... subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp) File "/home/dxl/anaconda3/envs/CLP/lib/python3.7/subprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2.
Hi, I am also running the CLIPasso project on Ubuntu 18.04 with cuda version 11.3 and torch version 1.11. Have you solved this problem? Thanks!
I am also running the CLIPasso project on Ubuntu 18.04 with cuda version 11.3 and torch version 1.11
Just solved this problem using the solution from @yuchen-xiyue. Thanks a lot!
I solved this problem on ubuntu20.04 cuda11.3 torch1.12.1 cmake3.22.1(it's important)
My environment is a little different from yours(cuda11.6). In my case, I could run
cmake --build ...
script successfully in shell but thesubprocess.check_call
always return with 2. So I changed it tosubprocess.call
. Everything looks good so far.
Thank you very much, this is very useful to me.
I followed the install procedure as outlined in the docs with python 3.7. On mac it just works. On a ubuntu 18 machine with gpu (CUDA Version: 11.0), it fails with the following logs. Are the "type traits" errors the reason for failure, or something else? Been bashing my head at this for hours now and not really making any progress.