Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

add data path to inference config

Shen-Chenhui9dc9afb25471
diff --git a/configs/vae_3d/inference/16x256x256.py b/configs/vae_3d/inference/16x256x256.py
index 53e1970..e9fba15 100644
--- a/configs/vae_3d/inference/16x256x256.py
+++ b/configs/vae_3d/inference/16x256x256.py
@@ -5,7 +5,7 @@ image_size = (256, 256)
# Define dataset
root = None
-data_path = "CSV_PATH"
+data_path = "/home/shenchenhui/data/pexels/inference.csv"
use_image_transform = False
num_workers = 4
diff --git a/opensora/models/vae/README.md b/opensora/models/vae/README.md
index bc060b1..b5da586 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 --master_port=<port_num> --nnodes=1 --nproc_per_node=1 scripts/train-vae.py configs/vae_3d/inference/16x256x256.py --data-path /home/shenchenhui/data/pexels/train.csv --ckpt-path /home/shenchenhui/Open-Sora-dev/outputs/028-F16S3-VAE_3D/epoch3-global_step20000/vae
+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
```
\ No newline at end of file