File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -euo pipefail
4
+
5
+ # Torch is needed but not in build requirements
6
+ # shellcheck disable=SC1091
7
+ source /opt/r8/monobase/activate.sh
8
+
9
+ # Loosely based on
10
+ # https://github.com/pytorch/pytorch/blob/main/.ci/manywheel/build_cuda.sh
11
+ export TORCH_CUDA_ARCH_LIST=' 5.0;6.0;7.0;7.5;8.0;8.6;9.0'
12
+
13
+ git clone https://github.com/Tencent/Hunyuan3D-2.git
14
+
15
+ cd Hunyuan3D-2
16
+ project_dir=$PWD
17
+
18
+ git checkout acda9583e719c820b35e084fb3afe3cb9f124519
19
+
20
+ cd " $project_dir /hy3dgen/texgen/custom_rasterizer"
21
+ python3 setup.py bdist_wheel
22
+
23
+ cd " $project_dir /hy3dgen/texgen/differentiable_renderer"
24
+ # Build dependency not declared by the package
25
+ uv pip install pybind11
26
+ python3 setup.py bdist_wheel
27
+
28
+ cd " $project_dir "
29
+ find . -name ' *.whl' > requirements.txt
30
+
31
+ # Extra dependencies not declared by these packages
32
+ # scipy pulls in numpy 2.x but the one from monobase has higher precedence
33
+ echo -e ' opencv-python\npygltflib\nscipy' >> requirements.txt
34
+
35
+
36
+ # custom_rasterizer requires torch to be imported first
37
+ /build/test.sh requirements.txt ' import torch; import custom_rasterizer; import mesh_processor'
38
+
39
+ find . -name ' *.whl' -exec cp {} /dst \;
You can’t perform that action at this time.
0 commit comments