luciddreamer-cvlab / LucidDreamer
- вторник, 12 декабря 2023 г. в 00:00:03
Official code for the paper "LucidDreamer: Domain-free Generation of 3D Gaussian Splatting Scenes".
LucidDreamer: Domain-free Generation of 3D Gaussian Splatting Scenes
Jaeyoung Chung, *Suyoung Lee, Hyeongjin Nam, Jaerin Lee, Kyoung Mu Lee
*
We offer several ways to interact with LucidDreamer:
ironjr/LucidDreamer
HuggingFace Space (including custom SD ckpt) and ironjr/LucidDreamer-mini
HuggingFace Space (minimal features / try at here in case of the former is down)
(We appreciate all the HF / Gradio team for their support).CUDA_VISIBLE_DEVICES=0 python app.py
(full feature including huggingface model download, requires ~15GB) or CUDA_VISIBLE_DEVICES=0 python app_mini.py
(minimum viable demo, uses only SD1.5).conda create -n lucid python=3.9
conda activate lucid
pip install peft diffusers scipy numpy imageio[ffmpeg] opencv-python Pillow open3d torchvision gradio
# ZoeDepth
pip install torch==2.0.1 timm==0.6.7
# Gaussian splatting
pip install plyfile==0.8.1
cd submodules/depth-diff-gaussian-rasterization-min
# sudo apt-get install libglm-dev # may be required for the compilation.
python setup.py install
cd ../simple-knn
python setup.py install
cd ../..
Note: Windows installation is experimental and may contain errors during installation. Please report the error to issues if occurs.
conda create -n lucid python=3.9
conda activate lucid
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install peft diffusers scipy numpy imageio[ffmpeg] opencv-python Pillow open3d gradio
# ZoeDepth
pip install timm==0.6.7
# Gaussian splatting
pip install plyfile==0.8.1
cd submodules\depth-diff-gaussian-rasterization-min\third_party
git clone https://github.com/g-truc/glm.git
cd ..\
python setup.py install
cd ..\simple-knn
python setup.py install
cd ..\..
# Default Example
python run.py
To run with your own inputs and prompts, attach following arguments after run.py
.
-img
: path of input image.-t
: text prompt. Can be either path to txt file or the text itself.-nt
: negative text prompt. Can be either path to txt file or the text itself.-cg
: camera extrinsic path for generating scenes. Can be one of "Rotate_360", "LookAround", or "LookDown".-cr
: camera extrinsic path for rendering videos. Can be one of "Back_and_forth", "LLFF", or "Headbanging".--seed
: manual seed for Stable Diffusion inpainting.--diff_steps
: number of denoising steps for Stable Diffusion inpainting. Default is 50.-s
: path to save results..ply
filesThere are multiple available viewers / editors for Gaussian splatting .ply
files.
@antimatter15's WebGL viewer for Gaussian splatting (Live demo).
@splinetool's web-based viewer for Gaussian splatting. This is the version we have used in our project page's demo.
Please cite us if you find our project useful!
@article{chung2023luciddreamer,
title={LucidDreamer: Domain-free Generation of 3D Gaussian Splatting Scenes},
author={Chung, Jaeyoung and Lee, Suyoung and Nam, Hyeongjin and Lee, Jaerin and Lee, Kyoung Mu},
journal={arXiv preprint arXiv:2311.13384},
year={2023}
}
We deeply appreciate ZoeDepth, Stability AI, and Runway for their models.
If you have any questions, please email robot0321@snu.ac.kr
, esw0116@snu.ac.kr
, jarin.lee@gmail.com
.