mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-04-10 12:49:38 +02:00
update
This commit is contained in:
parent
ee4e06c29b
commit
30e276166c
|
|
@ -327,6 +327,15 @@ python scripts/inference.py configs/opensora-v1-2/inference/sample.py \
|
|||
|
||||
For image to video generation and other functionalities, the API is compatible with Open-Sora 1.1. See [here](docs/commands.md) for more instructions.
|
||||
|
||||
If your installation do not contain `apex` and `flash-attn`, you need to disable them in the config file, or via the folowing command.
|
||||
|
||||
```bash
|
||||
python scripts/inference.py configs/opensora-v1-2/inference/sample.py \
|
||||
--num-frames 4s --resolution 720p \
|
||||
--layernorm-kernel False --flash-attn False \
|
||||
--prompt "a beautiful waterfall"
|
||||
```
|
||||
|
||||
### GPT-4o Prompt Refinement
|
||||
|
||||
We find that GPT-4o can refine the prompt and improve the quality of the generated video. With this feature, you can also use other language (e.g., Chinese) as the prompt. To enable this feature, you need prepare your openai api key in the environment:
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ def parse_args(training=False):
|
|||
parser.add_argument("--layernorm-kernel", default=None, type=str2bool, help="enable layernorm kernel")
|
||||
parser.add_argument("--resolution", default=None, type=str, help="multi resolution")
|
||||
parser.add_argument("--data-path", default=None, type=str, help="path to data csv")
|
||||
parser.add_argument("--dtype", default=None, type=str, help="data type")
|
||||
|
||||
# ======================================================
|
||||
# Inference
|
||||
|
|
|
|||
Loading…
Reference in a new issue