hzhao1997 / HF-Avatar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup issue in Windows10 with 3090 GPU

neerajtiwari360 opened this issue · comments

Hi Team,

Great Work and thanks for sharing the repository. I have done this setup in colab and it works fine but due to system limitations I wanted to set it up in my windows10 PC with 3090 GPU but I am not able to set up it at all, the issues are coming in the pytorch3d or neural_renderer_pytorch packages version. I will keep posting here about whatever bug I am facing.

(Avatar1) D:\HF_avatar\HF-Avatar-main\pytorch3d>pip install -e .
Obtaining file:///D:/HF_avatar/HF-Avatar-main/pytorch3d
Requirement already satisfied: fvcore in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from pytorch3d==0.4.0) (0.1.5.post20221122)
Requirement already satisfied: iopath in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from pytorch3d==0.4.0) (0.1.10)
Requirement already satisfied: pyyaml>=5.1 in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (6.0)
Requirement already satisfied: termcolor>=1.1 in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (1.1.0)
Requirement already satisfied: dataclasses in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (0.8)
Requirement already satisfied: yacs>=0.1.6 in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (0.1.8)
Requirement already satisfied: numpy in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (1.19.2)
Requirement already satisfied: Pillow in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (8.3.1)
Requirement already satisfied: tqdm in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (4.64.1)
Requirement already satisfied: tabulate in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from fvcore->pytorch3d==0.4.0) (0.8.10)
Requirement already satisfied: portalocker in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from iopath->pytorch3d==0.4.0) (2.6.0)
Requirement already satisfied: typing-extensions in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from iopath->pytorch3d==0.4.0) (4.1.1)
Requirement already satisfied: pywin32>=226 in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from portalocker->iopath->pytorch3d==0.4.0) (305)
Requirement already satisfied: colorama in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from tqdm->fvcore->pytorch3d==0.4.0) (0.4.5)
Requirement already satisfied: importlib-resources in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from tqdm->fvcore->pytorch3d==0.4.0) (5.4.0)
Requirement already satisfied: zipp>=3.1.0 in c:\users\this pc\anaconda3\envs\avatar1\lib\site-packages (from importlib-resources->tqdm->fvcore->pytorch3d==0.4.0) (3.6.0)
Installing collected packages: pytorch3d
Running setup.py develop for pytorch3d
ERROR: Command errored out with exit status 1:
command: 'C:\Users\This PC\anaconda3\envs\Avatar1\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\HF_avatar\HF-Avatar-main\pytorch3d\setup.py'"'"'; file='"'"'D:\HF_avatar\HF-Avatar-main\pytorch3d\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps
cwd: D:\HF_avatar\HF-Avatar-main\pytorch3d
Complete output (44 lines):
running develop
running egg_info
writing pytorch3d.egg-info\PKG-INFO
writing dependency_links to pytorch3d.egg-info\dependency_links.txt
writing requirements to pytorch3d.egg-info\requires.txt
writing top-level names to pytorch3d.egg-info\top_level.txt
reading manifest file 'pytorch3d.egg-info\SOURCES.txt'
D:\HF_avatar\HF-Avatar-main\pytorch3d\setup.py:69: UserWarning: The environment variable CUB_HOME was not found. NVIDIA CUB is required for compilation and can be downloaded from https://github.com/NVIDIA/cub/releases. You can unpack it to a location of your choice and set the environment variable CUB_HOME to the folder containing the CMakeListst.txt file.
"The environment variable CUB_HOME was not found. "
Traceback (most recent call last):
File "", line 1, in
File "D:\HF_avatar\HF-Avatar-main\pytorch3d\setup.py", line 144, in
cmdclass={"build_ext": BuildExtension},
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\develop.py", line 34, in run
self.install_for_development()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\develop.py", line 110, in install_for_development
self.run_command('egg_info')
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\egg_info.py", line 299, in run
self.find_sources()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\egg_info.py", line 306, in find_sources
mm.run()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\egg_info.py", line 541, in run
self.add_defaults()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\egg_info.py", line 585, in add_defaults
self.read_manifest()
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\sdist.py", line 188, in read_manifest
self.filelist.append(line)
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\site-packages\setuptools\command\egg_info.py", line 483, in append
path = convert_path(item)
File "C:\Users\This PC\anaconda3\envs\Avatar1\lib\distutils\util.py", line 125, in convert_path
raise ValueError("path '%s' cannot be absolute" % pathname)
ValueError: path '/usr/src/project/HF-Avatar-main/pytorch3d-0.4.0/pytorch3d/csrc/ext.cpp' cannot be absolute
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\This PC\anaconda3\envs\Avatar1\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'D:\HF_avatar\HF-Avatar-main\pytorch3d\setup.py'"'"'; file='"'"'D:\HF_avatar\HF-Avatar-main\pytorch3d\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Sorry. Our code does not support win10 and we only test it on ubuntu 18.0. But some users run it on win11 successfully. Please see #5.

ok @hzhao1997, thank you for the reference, I am facing one major issue related to 3090 GPU architecture while setup, are you guys had faced this in ubuntu system?

ok @hzhao1997, thank you for the reference, I am facing one major issue related to 3090 GPU architecture while setup, are you guys had faced this in ubuntu system?

did you solve this problem? I also meet this problem, and can not make file in dirt correct.