mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-04-18 07:15:12 +02:00
[doc] add inference guide
[doc] add inference guide
This commit is contained in:
commit
321722d016
12
README.md
12
README.md
|
|
@ -117,8 +117,18 @@ You can also modify the arguments in `train.sh` for your own need.
|
|||
|
||||
### Inference
|
||||
|
||||
To be added.
|
||||
We've provided a script to perform inference, allowing you to generate videos from the trained model. You can invoke the inference via the command below.
|
||||
|
||||
```bash
|
||||
python sample.py -m "DiT/XL-2" --text "a person is walking on the street" --ckpt /path/to/checkpoint --height 256 --width 256 --fps 10 --sec 5 --disable-cfg
|
||||
```
|
||||
This will generate a "sample.mp4" file in the current directory.
|
||||
|
||||
For more command line options, you can use the following command to check the help message.
|
||||
|
||||
```bash
|
||||
python sample.py -h
|
||||
```
|
||||
|
||||
## 🪄 Acknowledgement
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue