[Fixed] first_task_id issue
This commit is contained in:
+3
-2
@@ -111,8 +111,9 @@ def format_audio_for_output(audio_raw, is_dummy=False):
|
||||
|
||||
|
||||
def run_pre_dummy_test(pipe, video_vae, audio_vae, fps):
|
||||
"""在正式 Loop 前執行一次 Dummy 測試,固定參考 Task 0 的規格 (權重已常駐 GPU)"""
|
||||
task0 = TASK_REGISTRY[0]
|
||||
# 獲取 registry 中的第一個可用 task 作為參考規格 (不假設編號從 0 開始)
|
||||
first_task_id = next(iter(TASK_REGISTRY))
|
||||
task0 = TASK_REGISTRY[first_task_id]
|
||||
target_w = task0.width
|
||||
target_h = task0.height
|
||||
target_frames = task0.num_frames
|
||||
|
||||
Reference in New Issue
Block a user