diff --git a/README.md b/README.md index 53ceb33..f7b9fd6 100644 --- a/README.md +++ b/README.md @@ -15,24 +15,28 @@ # :wrench: Installation -## Windows Users: Please use WSL as flash attention isn't supported on native Windows yet: https://github.com/pytorch/pytorch/issues/108175 - -Clone the repository: - ```bash git clone --recursive https://github.com/Stability-AI/stable-virtual-camera -``` - -To setup the virtual environment and install all necessary model dependencies, simply run: - -```bash +cd stable-virtual-camera pip install -e . ``` +Please note that you will need `python>=3.10` and `torch>=2.6.0`. + Check [INSTALL.md](docs/INSTALL.md) for other dependencies if you want to use our demos or develop from this repo. +For windows users, please use WSL as flash attention isn't supported on native Windows [yet](https://github.com/pytorch/pytorch/issues/108175). # :open_book: Usage +You need to properly authenticate with Hugging Face to download our model weights. Once set up, our code will handle it automatically at your first run. You can authenticate by running + +```bash +# This will prompt you to enter your Hugging Face credentials. +huggingface-cli login +``` + +Once authenticated, go to our model card [here](https://huggingface.co/stabilityai/stable-virtual-camera) and enter your information for access. + We provide two demos for you to interact with `Stable Virtual Camera`. ### :rocket: Gradio demo diff --git a/demo.py b/demo.py index 19c15ad..1f99a1d 100644 --- a/demo.py +++ b/demo.py @@ -290,7 +290,7 @@ def main( VERSION_DICT["T"] = [int(t) for t in T.split(",")] if isinstance(T, str) else T options = VERSION_DICT["options"] - options["chunk_strategy"] = "interp" + options["chunk_strategy"] = "nearest-gt" options["video_save_fps"] = 30.0 options["beta_linear_start"] = 5e-6 options["log_snr_shift"] = 2.4 diff --git a/docs/CLI_USAGE.md b/docs/CLI_USAGE.md index e9344fd..ecb9d3b 100644 --- a/docs/CLI_USAGE.md +++ b/docs/CLI_USAGE.md @@ -53,7 +53,7 @@ We provide