You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+58-45
Original file line number
Diff line number
Diff line change
@@ -39,37 +39,6 @@ GaussianAnything: Interactive Point Cloud Latent Diffusion for 3D Generation
39
39
GaussianAnything generates <i>high-quality</i> and <i>editable</i> surfel Gaussians through a cascaded native 3D diffusion pipeline, given single-view images or texts as the conditions.
* All diffusion checkpoints will be automatically loaded from huggingface.
138
+
## setup the environment (the same env as [LN3Diff, ECCV 2024](https://github.com/NIRVANALAN/LN3Diff?tab=readme-ov-file))
139
+
140
+
```bash
141
+
conda create -n ga python=3.10
142
+
conda activate ga
143
+
pip intall -r requrements.txt # will install the surfel Gaussians environments and pytorch3d automatically.
144
+
```
145
+
146
+
## Gradio demo (Image-to-3D)
147
+
148
+
For image-to-3D generation with GaussianAnything, we have provided a gradio interface. After setting up the environment, please run ```python scripts/gradio_app_cascaded.py``` to launch the gradio locally. The code has been tested on V100 32GiB GPU.
* All diffusion checkpoints will be automatically loaded from [huggingface.co/yslan/GaussianAnything](https://huggingface.co/yslan/GaussianAnything/tree/main).
163
160
* The results will be directly dumped to ```./logs```, and can be modified by changing ```$logdir``` in the bash file accordingly.
164
161
165
162
<!-- To load the checkpoint automatically: please replace ```/mnt/sfs-common/yslan/open-source``` with ```yslan/GaussianAnything/ckpts/checkpoints```. -->
166
163
164
+
To set the CFG score and random seed, please update ```$unconditional_guidance_scale$``` and ```$seed$``` in the bash file.
165
+
167
166
167
+
## I23D (requires two stage generation):
168
168
169
-
## Text-2-3D:
169
+
set the ```$data_dir``` accordingly. For some demo image, please download from [huggingfac.co/yslan/GaussianAnything/demo-img](https://huggingface.co/yslan/GaussianAnything/tree/main/demo-img). We have also included the demo images shown in the paper in ```./assets/demo-image-for-i23d/instantmesh``` and ```./assets/demo-image-for-i23d/gso```.
170
170
171
-
Please update the caption for 3D generation in ```datasets/caption-forpaper.txt```. T o change the number of samples to be generated, please change ```$num_samples``` in the bash file.
171
+
In the bash file, we set ```data_dir="./assets/demo-image-for-i23d/instantmesh"``` by default.
then, set the ```$stage_1_output_dir``` to the ```$logdir``` of the above stage.
177
+
178
+
The sparse point cloud wll be saved to, e.g., ```logs/i23d/stage-1/dino_img/house2-input/sample-0-0.ply```. Note that ```$num_samples$``` samples will be saved, which is set in the bash file.
179
+
180
+
Then, set the ```$stage_1_output_dir``` to the ```$logdir``` of the above stage.
The results will be dumped to ```./logs/t23d/stage-2```
187
+
In the output dir of each instance, e.g., ```./logs/i23d/stage-2/dino_img/house2-input```, the code dumped the colored point cloud extracted from the surfel Gaussians center (xyz+RGB) ```sample-0-0-gaussian-pcd.ply```:
set the $data_dir accordingly. For some demo image, please download from [huggingfac.co/yslan/GaussianAnything/demo-img](https://huggingface.co/yslan/GaussianAnything/tree/main/demo-img).
191
+
The TSDF mesh ```stage1ID_0-stage2ID-0-mesh.obj```:
Please update the caption for 3D generation in ```datasets/caption-forpaper.txt```. T o change the number of samples to be generated, please change ```$num_samples``` in the bash file.
The results will be dumped to ```./logs/t23d/stage-2```
214
+
202
215
## 3D VAE Reconstruction:
203
216
204
217
To encode a 3D asset into the latent point cloud, please download the pre-trained VAE checkpoint from [huggingfac.co/yslan/gaussiananything/ckpts/vae/model_rec1965000.pt](https://huggingface.co/yslan/GaussianAnything/blob/main/ckpts/vae/model_rec1965000.pt) to ```./checkpoint/model_rec1965000.pt```.
0 commit comments