chore: update output filename format to 2-digit padding (%02d) for all ref2va steps
This commit is contained in:
+5
-5
@@ -124,8 +124,8 @@ def run_pre_dummy_test(pipe, video_vae, audio_vae, fps):
|
||||
|
||||
dummy_out_path = os.path.join(OUTPUT_DIR, f"dummy_test_{target_w}x{target_h}_{target_frames}f.mp4")
|
||||
|
||||
video_pt_0 = "result3_video_0.pt"
|
||||
audio_pt_0 = "result3_audio_0.pt"
|
||||
video_pt_0 = "result3_video_00.pt"
|
||||
audio_pt_0 = "result3_audio_00.pt"
|
||||
|
||||
if os.path.exists(video_pt_0) and os.path.exists(audio_pt_0):
|
||||
print(f">> [Dummy] 發現 {video_pt_0},沿用其結構克隆全 0 特徵張量...")
|
||||
@@ -241,15 +241,15 @@ def main():
|
||||
done = 0
|
||||
for task_idx in enabled_ids:
|
||||
task = TASK_REGISTRY[task_idx]
|
||||
out_path = os.path.join(OUTPUT_DIR, f"ref2va_output_{task_idx}_l0.mp4")
|
||||
out_path = os.path.join(OUTPUT_DIR, f"ref2va_output_{task_idx:02d}_l0.mp4")
|
||||
|
||||
if os.path.exists(out_path):
|
||||
print(f"\n>> [SKIP] Task {task_idx}: 輸出已存在: {out_path}")
|
||||
done += 1
|
||||
continue
|
||||
|
||||
video_pt = f"result3_video_{task_idx}.pt"
|
||||
audio_pt = f"result3_audio_{task_idx}.pt"
|
||||
video_pt = f"result3_video_{task_idx:02d}.pt"
|
||||
audio_pt = f"result3_audio_{task_idx:02d}.pt"
|
||||
|
||||
if not os.path.exists(video_pt) or not os.path.exists(audio_pt):
|
||||
print(f">> [Skip] 缺少 {video_pt} 或 {audio_pt}")
|
||||
|
||||
Reference in New Issue
Block a user