Open-Sora: Democratizing Efficient Video Production for All
Python
debug
Shen-Chenhui4250cfa9a2b3
diff --git a/opensora/models/vae/README.md b/opensora/models/vae/README.mdindex eab767d..931d360 100644--- a/opensora/models/vae/README.md+++ b/opensora/models/vae/README.md@@ -11,5 +11,5 @@ WANDB_API_KEY=<wandb_api_key> CUDA_VISIBLE_DEVICES=<n> torchrun --master_port=<p### 2. Inference```yaml-CUDA_VISIBLE_DEVICES=<n> torchrun --standalone --nnodes=1 --nproc_per_node=1 scripts/inference-vae.py configs/vae_3d/inference/16x256x256.py --ckpt-path /home/shenchenhui/Open-Sora-dev/outputs/028-F16S3-VAE_3D/epoch3-global_step20000/vae --vae_only True --data_path /home/shenchenhui/data/pexels/test.csv+CUDA_VISIBLE_DEVICES=<n> torchrun --standalone --nnodes=1 --nproc_per_node=1 scripts/inference-vae.py configs/vae_3d/inference/16x256x256.py --ckpt-path /home/shenchenhui/Open-Sora-dev/outputs/028-F16S3-VAE_3D/epoch3-global_step20000/vae --vae_only True --data-path /home/shenchenhui/data/pexels/test.csv```\ No newline at end of filediff --git a/opensora/utils/config_utils.py b/opensora/utils/config_utils.pyindex cd3065b..f3bbe2f 100644--- a/opensora/utils/config_utils.py+++ b/opensora/utils/config_utils.py@@ -60,7 +60,7 @@ def merge_args(cfg, args, training=False):cfg["reference_path"] = Noneif "loop" not in cfg:cfg["loop"] = 1- if not cfg.vae and ("prompt" not in cfg or cfg["prompt"] is None):+ if not cfg.vae_only and ("prompt" not in cfg or cfg["prompt"] is None):assert cfg["prompt_path"] is not None, "prompt or prompt_path must be provided"cfg["prompt"] = load_prompts(cfg["prompt_path"])else: