OOTDiffusion
OOTDiffusion copied to clipboard
Update
Upload requirements.txt Better readme
I am getting this error on your requirements. I followed your readme.
python run/run_ootd.py --model_path images/2.jpg --cloth_path images/1.jpg --scale 2.0 --sampl
e 4
Traceback (most recent call last):
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "/usr/lib/python3.11/subprocess.py", line 571, 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 "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/run/run_ootd.py", line 10, in <module>
from preprocess.humanparsing.aigc_run_parsing import Parsing
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/aigc_run_parsing.py", line 7, in <module>
from parsing_api import load_atr_model, load_lip_model, inference
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/parsing_api.py", line 11, in <module>
import networks
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/networks/__init__.py", line 2, in <module>
from networks.AugmentCE2P import resnet101
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/networks/AugmentCE2P.py", line 22, in <module>
from modules import InPlaceABNSync
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/__init__.py", line 1, in <module>
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/bn.py", line 10, in <module>
from .functions import *
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/functions.py", line 11, in <module>
_backend = load(name="inplace_abn",
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1284, in load
return _jit_compile(
^^^^^^^^^^^^^
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1509, in _jit_compile
_write_ninja_file_and_build_library(
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1624, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1909, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'inplace_abn': [1/5] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda.cu' -o inplace_abn_cuda.cuda.o
FAILED: inplace_abn_cuda.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda.cu' -o inplace_abn_cuda.cuda.o
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
[2/5] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda_half.cu' -o inplace_abn_cuda_half.cuda.o
FAILED: inplace_abn_cuda_half.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda_half.cu' -o inplace_abn_cuda_half.cuda.o
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
[3/5] c++ -MMD -MF inplace_abn.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn.cpp' -o inplace_abn.o
FAILED: inplace_abn.o
c++ -MMD -MF inplace_abn.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn.cpp' -o inplace_abn.o
/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn.cpp:1:10: fatal error: torch/extension.h: No such file or directory
1 | #include <torch/extension.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
[4/5] c++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp' -o inplace_abn_cpu.o
FAILED: inplace_abn_cpu.o
c++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp' -o inplace_abn_cpu.o
/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp:1:10: fatal error: ATen/ATen.h: No such file or directory
1 | #include <ATen/ATen.h>
| ^~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
I am getting this error on your requirements. I followed your readme.
python run/run_ootd.py --model_path images/2.jpg --cloth_path images/1.jpg --scale 2.0 --sampl e 4 Traceback (most recent call last): File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "/usr/lib/python3.11/subprocess.py", line 571, 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 "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/run/run_ootd.py", line 10, in <module> from preprocess.humanparsing.aigc_run_parsing import Parsing File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/aigc_run_parsing.py", line 7, in <module> from parsing_api import load_atr_model, load_lip_model, inference File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/parsing_api.py", line 11, in <module> import networks File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/networks/__init__.py", line 2, in <module> from networks.AugmentCE2P import resnet101 File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/networks/AugmentCE2P.py", line 22, in <module> from modules import InPlaceABNSync File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/__init__.py", line 1, in <module> from .bn import ABN, InPlaceABN, InPlaceABNSync File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/bn.py", line 10, in <module> from .functions import * File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/functions.py", line 11, in <module> _backend = load(name="inplace_abn", ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1284, in load return _jit_compile( ^^^^^^^^^^^^^ File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1509, in _jit_compile _write_ninja_file_and_build_library( File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1624, in _write_ninja_file_and_build_library _run_ninja_build( File "/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1909, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension 'inplace_abn': [1/5] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda.cu' -o inplace_abn_cuda.cuda.o FAILED: inplace_abn_cuda.cuda.o /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda.cu' -o inplace_abn_cuda.cuda.o nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified [2/5] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda_half.cu' -o inplace_abn_cuda_half.cuda.o FAILED: inplace_abn_cuda_half.cuda.o /usr/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' --expt-extended-lambda -std=c++17 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cuda_half.cu' -o inplace_abn_cuda_half.cuda.o nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified [3/5] c++ -MMD -MF inplace_abn.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn.cpp' -o inplace_abn.o FAILED: inplace_abn.o c++ -MMD -MF inplace_abn.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn.cpp' -o inplace_abn.o /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn.cpp:1:10: fatal error: torch/extension.h: No such file or directory 1 | #include <torch/extension.h> | ^~~~~~~~~~~~~~~~~~~ compilation terminated. [4/5] c++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp' -o inplace_abn_cpu.o FAILED: inplace_abn_cpu.o c++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/TH -isystem /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/env/lib/python3.11/site-packages/torch/include/THC -isystem /usr/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -c '/home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp' -o inplace_abn_cpu.o /home/salehahmad/Documents/Vector/VFIT OOT Diffusion/OOTDiffusion/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp:1:10: fatal error: ATen/ATen.h: No such file or directory 1 | #include <ATen/ATen.h> | ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed.
It looks like a problem of ninja. I uesd by python 3.10 and windows x64.
I am getting this error on your requirements. I followed your readme. E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist>python setup.py install running install D:\ProgramData\anaconda3\envs\python_39\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!! self.initialize_options() D:\ProgramData\anaconda3\envs\python_39\lib\site-packages\setuptools_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!! self.initialize_options() running bdist_egg running egg_info writing chamfer.egg-info\PKG-INFO writing dependency_links to chamfer.egg-info\dependency_links.txt writing top-level names to chamfer.egg-info\top_level.txt reading manifest file 'chamfer.egg-info\SOURCES.txt' writing manifest file 'chamfer.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext building 'chamfer' extension Emitting ninja build file E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\build\temp.win-amd64-cpython-39\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\build\temp.win-amd64-cpython-39\Release\chamfer.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include\torch\csrc\api\include -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include\TH -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\ProgramData\anaconda3\envs\python_39\include -ID:\ProgramData\anaconda3\envs\python_39\Include "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22621.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22621.0\um" "-ID:\Windows Kits\10\include\10.0.22621.0\shared" "-ID:\Windows Kits\10\include\10.0.22621.0\winrt" "-ID:\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE" -c E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\chamfer.cu -o E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\build\temp.win-amd64-cpython-39\Release\chamfer.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=chamfer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 FAILED: E:/ProgramCheck/Point-MAE-main/extensions/chamfer_dist/build/temp.win-amd64-cpython-39/Release/chamfer.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\nvcc --generate-dependencies-with-compile --dependency-output E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\build\temp.win-amd64-cpython-39\Release\chamfer.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include\torch\csrc\api\include -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include\TH -ID:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\include" -ID:\ProgramData\anaconda3\envs\python_39\include -ID:\ProgramData\anaconda3\envs\python_39\Include "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22621.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22621.0\um" "-ID:\Windows Kits\10\include\10.0.22621.0\shared" "-ID:\Windows Kits\10\include\10.0.22621.0\winrt" "-ID:\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE" -c E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\chamfer.cu -o E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\build\temp.win-amd64-cpython-39\Release\chamfer.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=chamfer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\ProgramData\anaconda3\envs\python_39\lib\site-packages\torch\utils\cpp_extension.py", line 2096, in _run_ninja_build subprocess.run( File "D:\ProgramData\anaconda3\envs\python_39\lib\subprocess.py", line 528, 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 "E:\ProgramCheck\Point-MAE-main\extensions\chamfer_dist\setup.py", line 11, in
Please try on python3.10. And install VS C++.