Optimize the generation logic
This commit is contained in:
@@ -43,6 +43,7 @@ class ProgressEvent:
|
||||
frame_total: Optional[int] = None
|
||||
step: Optional[int] = None # 1-4 for frame processing steps
|
||||
action: Optional[str] = None # "audio", "image", "compose", "video"
|
||||
extra_info: Optional[str] = None # Additional information (e.g., batch progress)
|
||||
|
||||
def __post_init__(self):
|
||||
"""Validate progress value"""
|
||||
|
||||
@@ -11,10 +11,10 @@ from typing import List, Optional
|
||||
class StoryboardConfig:
|
||||
"""Storyboard configuration parameters"""
|
||||
n_storyboard: int = 5 # Number of storyboard frames
|
||||
min_narration_words: int = 30 # Min narration word count
|
||||
max_narration_words: int = 50 # Max narration word count
|
||||
min_image_prompt_words: int = 60 # Min image prompt word count
|
||||
max_image_prompt_words: int = 100 # Max image prompt word count
|
||||
min_narration_words: int = 5 # Min narration word count
|
||||
max_narration_words: int = 20 # Max narration word count
|
||||
min_image_prompt_words: int = 30 # Min image prompt word count
|
||||
max_image_prompt_words: int = 60 # Max image prompt word count
|
||||
|
||||
# Video parameters
|
||||
video_width: int = 1080 # Video width
|
||||
|
||||
Reference in New Issue
Block a user