计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
video-and-inpainting【效率与协作】Use Imagen-Pytorch video generation and image/video inpainting APIs, including Unet3D tensor shapes, sampling frame counts, conditioning frames, masks, and safe preflight validation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task mentions Unet3D, text-to-video, video_frames, temporal_downsample_factor, cond_video_frames, post_cond_video_frames, inpaint_images, inpaint_videos, inpaint_masks, ignore_time, or video limitations around return_pil_images.
(batch, channels, frames, height, width).(batch, channels, height, width).(batch, height, width) for images; for videos they may be (batch, height, width) to broadcast across frames or (batch, frames, height, width) for per-frame masks.Unet3D; video sampling then needs video_frames unless it is inferred from inpaint_videos.temporal_downsample_factor is per cascade stage, must be descending, and the last stage must be 1.return_pil_images=False for video samples and save the returned tensor with your own video writer.Choose Unet3D stages for video. Use only Unet3D stages for ordinary video cascades; do not sample through a NullUnet placeholder.
Choose frame counts before model calls. For a cascade with temporal_downsample_factor=(2, 1) and video_frames=20, the base stage sees 10 frames and the final stage sees 20.
From this sub-skill directory, run the bundled preflight checker before expensive model calls:
python scripts/video_shape_quickcheck.py \
--operation sample \
--video-model \
--video-frames 20 \
--temporal-downsample-factor 2,1 \
--texts 4
Keep generation and training on practical CUDA-scale hardware. Construction only established a CUDA torch smoke; it did not prove realistic video quality or affordable full generation.
For API details and copyable recipes, use workflows, api-reference, and troubleshooting.
sample(..., texts=[...], video_frames=F, return_pil_images=False).sample(..., inpaint_videos=videos, inpaint_masks=masks, return_pil_images=False); videos supplies F.sample(..., inpaint_images=images, inpaint_masks=masks) and keep image shapes 4D.Unet3D: pass images as 4D; the model path converts them to single-frame videos and sets ignore_time=True automatically. Preflight temporal factors first, because the source still derives one-frame cascade dimensions before temporal modules are skipped.cond_video_frames and/or post_cond_video_frames; keep frame lengths divisible after temporal downsampling.