Views
No views yet

1python -m venv venv
2source venv/bin/activate
3bash setup.sh
4python gradio_app.py1conda create -n triplaneturbo python=3.10
2conda activate triplaneturbo
3conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=12.1 -c pytorch -c nvidiaconda install xFormers -c xFormerspip install ninjapip install -r requirements.txt1export PATH="/usr/local/cuda/bin:$PATH"
2export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
3pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch1conda install -c conda-forge gxx=9.5.0
2cd $CONDA_PREFIX/lib
3ln -s /usr/lib/x86_64-linux-gnu/libcuda.so ./
4cd <your project directory>1# Download the model from HuggingFace
2huggingface-cli download --resume-download ZhiyuanthePony/TriplaneTurbo \
3 --include "triplane_turbo_sd_v1.pth" \
4 --local-dir ./pretrained \
5 --local-dir-use-symlinks False
6
7# Download evaluation assets
8python scripts/prepare/download_eval_only.py
9
10# Run evaluation script
11bash scripts/eval/dreamfusion.sh --gpu 0,1 # You can use more GPUs (e.g. 0,1,2,3,4,5,6,7). For single GPU usage, please check the script for required modifications1CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python launch.py \
2 --config <path_to_your_exp_config> \
3 --export \
4 system.exporter_type="multiprompt-mesh-exporter" \
5 resume=<path_to_your_ckpt> \
6 data.prompt_library="dreamfusion_415_prompt_library" \
7 system.exporter.fmt=objoutputs/<your_exp>/dreamfusion_415_prompt_library/save/<itXXXXX-export>. Set this path as <OBJ_DIR>, and set outputs/<your_exp>/dreamfusion_415_prompt_library/save/<itXXXXX-4views> as <VIEW_DIR>. Then run:1SAVE_DIR=<VIEW_DIR>
2python evaluation/mesh_visualize.py \
3 <OBJ_DIR> \
4 --save_dir $SAVE_DIR \
5 --gpu 0,1,2,3,4,5,6,7
6
7python evaluation/clipscore/compute.py \
8 --result_dir $SAVE_DIRpython scripts/prepare/download_full.py1# Single GPU
2CUDA_VISIBLE_DEVICES=0 python launch.py \
3 --config configs/TriplaneTurbo_v0_acc-2.yaml \
4 --train \
5 data.prompt_library="3DTopia_prompt_library" \
6 data.condition_processor.cache_dir=".threestudio_cache/text_embeddings_3DTopia" \
7 data.guidance_processor.cache_dir=".threestudio_cache/text_embeddings_3DTopia"1# 8 GPUs with 48GB+ memory each
2CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python launch.py \
3 --config configs/TriplaneTurbo_v1_acc-2.yaml \
4 --train \
5 data.prompt_library="3DTopia_361k_prompt_library" \
6 data.condition_processor.cache_dir=".threestudio_cache/text_embeddings_3DTopia" \
7 data.guidance_processor.cache_dir=".threestudio_cache/text_embeddings_3DTopia"1# Single GPU
2CUDA_VISIBLE_DEVICES=0 python launch.py \
3 --config configs/TriplaneTurbo_v0_acc-2.yaml \
4 --train \
5 data.prompt_library="DALLE_Midjourney_prompt_library" \
6 data.condition_processor.cache_dir=".threestudio_cache/text_embeddings_DE+MJ" \
7 data.guidance_processor.cache_dir=".threestudio_cache/text_embeddings_DE+MJ"1# 8 GPUs with 48GB+ memory each
2CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python launch.py \
3 --config configs/TriplaneTurbo_v1_acc-2.yaml \
4 --train \
5 data.prompt_library="DALLE_Midjourney_prompt_library" \
6 data.condition_processor.cache_dir=".threestudio_cache/text_embeddings_DE+MJ" \
7 data.guidance_processor.cache_dir=".threestudio_cache/text_embeddings_DE+MJ"_acc-2.yaml configs for gradient accumulation to reduce memory usageconfigs/TriplaneTurbo_v1.yaml with system.parallel_guidance=true (requires 98GB+ memory GPUs)guidance.rd_weight=0 guidance.sd_weight=0 to the command@article{ma2025progressive,
title={Progressive Rendering Distillation: Adapting Stable Diffusion for Instant Text-to-Mesh Generation without 3D Data},
author={Ma, Zhiyuan and Liang, Xinyue and Wu, Rongyuan and Zhu, Xiangyu and Lei, Zhen and Zhang, Lei},
booktitle={Proceedings of the IEEE/CVF conference on computer vision and pattern recognition},
year={2025}
}