[bugfix]: Preserve PAN2 negative prompt (#2029)

Preserve PAN2's trained single-space unconditional prompt through shared normalization and PAN2 input validation.

Add scoped regression coverage and remove redundant comments.
This commit is contained in:
William Lin
2026-11-07 10:27:53 +00:00
parent f9b2d4957b
commit 6b5eef4711
8 changed files with 103 additions and 20 deletions
-2
View File
@@ -120,8 +120,6 @@ NUM_FRAMES = 241 # 10 s at 24 fps, the caption's length.
OUTPUT_PATH = "video_samples_pan2"
MODEL_PATH = os.environ.get("PAN2_MODEL_PATH", "IFM/PAN2")
# Set to a first frame (e.g. "assets/images/girl.png") for image-to-video; the same pipeline runs both modes. The
# caption's `init_frame_visual_description` should then describe that frame.
IMAGE_PATH = None