Huiwenshi commited on
Commit
ad845fa
·
verified ·
1 Parent(s): f2b8b92

Upload ./README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +10 -11
README.md CHANGED
@@ -91,18 +91,16 @@ cd Hunyuan3D-1
91
  We provide an env_install.sh script file for setting up environment.
92
 
93
  ```
94
- # step 1, create conda env
95
  conda create -n hunyuan3d-1 python=3.9 or 3.10 or 3.11 or 3.12
96
  conda activate hunyuan3d-1
97
 
98
- # step 2. install torch realated package
99
- which pip # check pip corresponds to python
100
-
101
- # modify the cuda version according to your machine (recommended)
102
- pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
103
-
104
- # step 3. install other packages
105
  bash env_install.sh
 
 
 
 
 
106
  ```
107
 
108
  because of dust3r, we offer a guide:
@@ -221,6 +219,7 @@ bash scripts/image_to_3d_lite_separately.sh ./demos/example_000.png ./outputs/te
221
  ```
222
 
223
  #### Baking related
 
224
 
225
  ```bash
226
  mkdir -p ./third_party/weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt
@@ -237,11 +236,11 @@ If you download related code and weights, we list some additional arg:
237
 
238
  | Argument | Default | Description |
239
  |:------------------:|:---------:|:---------------------------------------------------:|
240
- |`--do_bake` | False | baking multi-view into mesh |
241
- |`--bake_align_times` | 3 | the times of align image with mesh |
242
 
243
 
244
- Note: When running main.py, ensure that do_bake is set to True and do_texture_mapping is also set to True.
245
 
246
  ```bash
247
  python main.py ... --do_texture_mapping --do_bake (--do_render)
 
91
  We provide an env_install.sh script file for setting up environment.
92
 
93
  ```
 
94
  conda create -n hunyuan3d-1 python=3.9 or 3.10 or 3.11 or 3.12
95
  conda activate hunyuan3d-1
96
 
97
+ pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
 
 
 
 
 
 
98
  bash env_install.sh
99
+
100
+ # or
101
+ pip3 install -r requirements.txt --index-url https://download.pytorch.org/whl/cu121
102
+ pip3 install git+https://github.com/facebookresearch/pytorch3d@stable
103
+ pip3 install git+https://github.com/NVlabs/nvdiffrast
104
  ```
105
 
106
  because of dust3r, we offer a guide:
 
219
  ```
220
 
221
  #### Baking related
222
+ We have provided the texture baking module here. The matching and warpping processes are completed using Dust3R, which is licensed under the CC BY-NC-SA 4.0 license. Please note that this is a non-commercial license, and therefore, this module cannot be used for commercial purposes.
223
 
224
  ```bash
225
  mkdir -p ./third_party/weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt
 
236
 
237
  | Argument | Default | Description |
238
  |:------------------:|:---------:|:---------------------------------------------------:|
239
+ |`--do_bake` | False | baking multi-view images onto mesh |
240
+ |`--bake_align_times` | 3 | alignment number of image and mesh |
241
 
242
 
243
+ Note: If you need baking, please ensure that `--do_bake` is set to `True` and `--do_texture_mapping` is also set to `True`.
244
 
245
  ```bash
246
  python main.py ... --do_texture_mapping --do_bake (--do_render)