Skip to content

SkyReels-V2: Infinite-length Film Generative model

Python

Optimize prompt_enhancer parameter using rules

yangjiangping0e0fbf40b750
diff --git a/README.md b/README.md
index dc68acd..e93265f 100644
--- a/README.md
+++ b/README.md
@@ -224,6 +224,9 @@ The prompt enhancer is implemented based on <a href="https://huggingface.co/Qwen
cd skyreels_v2_infer/pipelines
python3 prompt_enhancer.py --prompt "A serene lake surrounded by towering mountains, with a few swans gracefully gliding across the water and sunlight dancing on the surface."
```
+> **Note**:
+> - `--prompt_enhancer` is not allowed if using `--use_usp`. We recommend running the skyreels_v2_infer/pipelines/prompt_enhancer.py script first to generate enhanced prompt before enabling the `--use_usp` parameter.
+
**Advanced Configuration Options**
diff --git a/generate_video.py b/generate_video.py
index d527105..ee37fee 100644
--- a/generate_video.py
+++ b/generate_video.py
@@ -70,6 +70,7 @@ if __name__ == "__main__":
negative_prompt = "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards"
local_rank = 0
if args.use_usp:
+ assert not args.prompt_enhancer, "`--prompt_enhancer` is not allowed if using `--use_usp`. We recommend running the skyreels_v2_infer/pipelines/prompt_enhancer.py script first to generate enhanced prompt before enabling the `--use_usp` parameter."
from xfuser.core.distributed import initialize_model_parallel, init_distributed_environment
import torch.distributed as dist
diff --git a/generate_video_df.py b/generate_video_df.py
index 25aa052..b1bbd9c 100644
--- a/generate_video_df.py
+++ b/generate_video_df.py
@@ -79,6 +79,7 @@ if __name__ == "__main__":
os.makedirs(save_dir, exist_ok=True)
local_rank = 0
if args.use_usp:
+ assert not args.prompt_enhancer, "`--prompt_enhancer` is not allowed if using `--use_usp`. We recommend running the skyreels_v2_infer/pipelines/prompt_enhancer.py script first to generate enhanced prompt before enabling the `--use_usp` parameter."
from xfuser.core.distributed import initialize_model_parallel, init_distributed_environment
import torch.distributed as dist
diff --git a/skycaptioner_v1/README.md b/skycaptioner_v1/README.md
index dbb2e9c..1f48267 100644
--- a/skycaptioner_v1/README.md
+++ b/skycaptioner_v1/README.md
@@ -220,7 +220,7 @@ export SkyCaptioner_V1_Model_PATH="/path/to/your_local_model_path"
python scripts/vllm_struct_caption.py \
--model_path ${SkyCaptioner_V1_Model_PATH} \
--input_csv "./examples/test.csv" \
- --out_csv "./examepls/test_result.csv" \
+ --out_csv "./examples/test_result.csv" \
--tp 1 \
--bs 4
```