Skip to content

Commit

Permalink
Remove pytorch3d & pytorch_scatter in compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Oct 18, 2024
1 parent 5a1292c commit 1d8f383
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions attachments/reinstall-deps-for-3d.bat
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ set PATH=%PATH%;%~dp0\python_embeded\Scripts

if not exist ".\tmp_build" mkdir tmp_build

.\python_embeded\python.exe -s -m pip install numpy==1.26.4

git clone --depth=1 https://github.com/MrForExample/Comfy3D_Pre_Builds.git ^
.\tmp_build\Comfy3D_Pre_Builds

Expand All @@ -43,20 +45,16 @@ git clone --depth=1 https://github.com/MrForExample/Comfy3D_Pre_Builds.git ^
.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://github.com/ashawkey/diff-gaussian-rasterization.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://github.com/NVlabs/nvdiffrast.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://github.com/facebookresearch/pytorch3d.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://github.com/ashawkey/kiuikit.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://github.com/rusty1s/pytorch_scatter.git
git+https://github.com/NVlabs/nvdiffrast.git

echo Build complete, installing...

del .\tmp_build\numpy-2*.whl

for %i in (.\tmp_build\*.whl) do .\python_embeded\python.exe -s -m pip install --force-reinstall "%i"

.\python_embeded\python.exe -s -m pip install numpy==1.26.4
12 changes: 5 additions & 7 deletions attachments/重新编译安装3D-Pack依赖项.bat
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ set PATH=%PATH%;%~dp0\python_embeded\Scripts

if not exist ".\tmp_build" mkdir tmp_build

.\python_embeded\python.exe -s -m pip install numpy==1.26.4

git clone --depth=1 https://ghp.ci/https://github.com/MrForExample/Comfy3D_Pre_Builds.git ^
.\tmp_build\Comfy3D_Pre_Builds

Expand All @@ -52,20 +54,16 @@ git clone --depth=1 https://ghp.ci/https://github.com/MrForExample/Comfy3D_Pre_B
.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://ghp.ci/https://github.com/ashawkey/diff-gaussian-rasterization.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://ghp.ci/https://github.com/NVlabs/nvdiffrast.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://ghp.ci/https://github.com/facebookresearch/pytorch3d.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://ghp.ci/https://github.com/ashawkey/kiuikit.git

.\python_embeded\python.exe -s -m pip wheel -w tmp_build ^
git+https://ghp.ci/https://github.com/rusty1s/pytorch_scatter.git
git+https://ghp.ci/https://github.com/NVlabs/nvdiffrast.git

echo "编译完成,开始安装……"

del .\tmp_build\numpy-2*.whl

for %i in (.\tmp_build\*.whl) do .\python_embeded\python.exe -s -m pip install --force-reinstall "%i"

.\python_embeded\python.exe -s -m pip install numpy==1.26.4

0 comments on commit 1d8f383

Please sign in to comment.