Skip to content

Commit

Permalink
SV3D update README (Stability-AI#305)
Browse files Browse the repository at this point in the history
* Makes init changes for SV3D

* Small fixes : cond_aug

* Fixes SV3D checkpoint, fixes rembg

* Black formatting

* Adds streamlit demo, fixes simple sample script

* Removes SV3D video_decoder, keeps SV3D image_decoder

* Updates README

* Minor updates

* Remove GSO script

* Updates REAME, fixes names

---------

Co-authored-by: Vikram Voleti <[email protected]>
  • Loading branch information
2 people authored and LinearFalcon committed Jul 6, 2024
1 parent 00ddc63 commit 66ea5b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,18 @@
- We extend the streamlit demo `scripts/demo/video_sampling.py` and the standalone python script `scripts/sampling/simple_video_sample.py` for inference of both models.
- Please check our [project page](https://sv3d.github.io), [tech report](https://sv3d.github.io/static/paper.pdf) and [video summary](https://youtu.be/Zqw4-1LcfWg) for more details.

<<<<<<< HEAD
To run SV3D_u on a single image:
- Download `sv3d_u.safetensors` from https://huggingface.co/stabilityai/sv3d to `checkpoints/sv3d_u.safetensors`
- Run `python scripts/sampling/simple_video_sample.py --input_path <path/to/image.png> --version sv3d_u`

Additionally for SV3D_p,
- Specify sequences of 21 elevations and 21 azimuths (in degrees) to `elevations_deg` ([-90, 90]), and `azimuths_deg` [0, 360] in sorted order from 0 to 360. For example:
`python scripts/sampling/simple_video_sample.py --input_path <path/to/image.png> --version sv3d_p --elevations_deg [<list of 21 elevations in degrees>] --azimuths_deg [<list of 21 azimuths in degrees>]`
=======
To run SV3D on a single image:
`python scripts/sampling/simple_video_sample.py --input_path <path/to/image.png> --version sv3d_p`
>>>>>>> main
To run SVD or SV3D on a streamlit server:
`streamlit run scripts/demo/video_sampling.py`
Expand Down
2 changes: 1 addition & 1 deletion scripts/sampling/configs/sv3d_p.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ model:
params:
scale_factor: 0.18215
disable_first_stage_autocast: True
ckpt_path: checkpoints/sv3d_p_image_decoder.safetensors
ckpt_path: checkpoints/sv3d_p.safetensors

denoiser_config:
target: sgm.modules.diffusionmodules.denoiser.Denoiser
Expand Down
2 changes: 1 addition & 1 deletion scripts/sampling/configs/sv3d_u.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ model:
params:
scale_factor: 0.18215
disable_first_stage_autocast: True
ckpt_path: checkpoints/sv3d_u_image_decoder.safetensors
ckpt_path: checkpoints/sv3d_u.safetensors

denoiser_config:
target: sgm.modules.diffusionmodules.denoiser.Denoiser
Expand Down

0 comments on commit 66ea5b4

Please sign in to comment.