- 씬 생성 메인 스크립트:
generate_scnene.py - 랜덤 씬 생성 스크립트:
generate_random_scene.py - 씬 평가 유틸:
scene_evalute_clip_ds.py
- OS: Ubuntu 20.04
- GPU: NVIDIA-RTX-A5000 (VRAM 24GB)
- CUDA: 12.4
- Pytorch: 2.6.0+cu124
- Network: Download Hugging Face model/pipeline at the first time
git clone https://github.com/KAIST-VML/KOCCA-3D_Scene_Edit.git
cd KOCCA-3D_Scene_Editconda create -n kocca3d python=3.10 -y
conda activate kocca3d# CUDA 12.4
pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu124pip install -r requirements.txt(optional)if you want to check requirements are installed well,
python pkg_check.pyinstall xvfb-run (only gpu linux server like vessl required)
apt-get update
apt-get install -y \
xvfb \
freeglut3-dev \
libgl1-mesa-glx \
libglib2.0-0 \
libosmesa6-dev \
libglu1-mesa-devTheme list (10)
- art_deco
- bioluminescent
- claymation
- cyberpunk
- ghibli
- glass
- medieval
- steampunk
- wooden
- yellow
- one theme
python generate_scene.py --style art_deco
python generate_scene.py --style steampunk- one theme, same layout, but different object
python generate_random_scene.py --style art_deco
python generate_random_scene.py --style steampunk=> All results are saved in /scene_data/scene1
we have to finish all the steps above.
# exemple: art_deco vs steampunk
python compare_scene_styles.py --style1 art_deco --style2 steampunk
# change directory
python compare_scene_styles.py --style1 art_deco --style2 steampunk --scene_dir /source/sola/Kocca_3Dedit/scene_data/scene1