Skip to content

Commit

Permalink
code release
Browse files Browse the repository at this point in the history
  • Loading branch information
hw-liang committed Apr 2, 2024
1 parent 5654c89 commit 7eeecc4
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 4,665 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Comp4D: LLM-Guided Compositional 4D Scene Generation

Authors: Dejia Xu, Hanwen Liang, Neel P. Bhatt, Hezhen Hu, Hanxue Liang,
Konstantinos N. Plataniotis, and Zhangyang Wang
The official implementation of "Comp4D: LLM-Guided Compositional 4D Scene Generation".

[[Project Page]](https://vita-group.github.io/Comp4D/) | [[Video (narrated)]](https://www.youtube.com/watch?v=9q8SV1Xf_Xw) | [[Video (results)]](https://www.youtube.com/watch?v=gXVoPTGb734) | [[Paper]](https://github.com/VITA-Group/Comp4D/blob/main/assets/Comp4D.pdf) | [[Arxiv]](https://arxiv.org/abs/2403.16993)

Expand Down Expand Up @@ -49,8 +48,16 @@ pip install ./simple-knn

#### Compositional Scene training
```
python train_comp.py --configs arguments/comp_butterfly_flower_zs.py -e butterflyflower_exp --image_weight_override 0.02 --nn_weight 1000 --with_reg --cfg_override 100.0 --loss_dx_weight_override 0.005
python train_comp.py --configs arguments/comp_butterfly_flower_zs.py -e butterflyflower_exp --cfg_override 100.0 --image_weight_override 0.02 --nn_weight 1000 --with_reg --loss_dx_weight_override 0.005
```
---
We provide a quick overview of some important arguments:
- `--configs`: Configuration of scene traning including prompt, object identity, object scales, trajectory.
- `--image_weight`: Weight of sds loss from image-based diffusion model.
- `--nn_weight`: Weight of k-nn based rigidity loss.
- `--loss_dx_weight`: Weight of regularization acceleration loss.
- `-e`: Experimental path.
You can also use [VideoCrafter](https://github.com/AILab-CVC/VideoCrafter) in replace of Zeroscope for video-based diffusion model.

#### Rendering
```
Expand Down
Empty file removed guidance/attn_utils/__init__.py
Empty file.
1,668 changes: 0 additions & 1,668 deletions guidance/attn_utils/attention_processor.py

This file was deleted.

256 changes: 0 additions & 256 deletions guidance/attn_utils/attention_refocusing_loss.py

This file was deleted.

Loading

0 comments on commit 7eeecc4

Please sign in to comment.