Fix UnboundLocalError for is_coordinator when all frames already upscaled
This commit is contained in:
@@ -401,6 +401,7 @@ def run_upscale_pipeline(job: UpscaleJob, on_progress_update: Callable[[str, Dic
|
|||||||
print(f"Job {job.job_id}: Skipping {skipped_frames} already upscaled frames.")
|
print(f"Job {job.job_id}: Skipping {skipped_frames} already upscaled frames.")
|
||||||
|
|
||||||
remaining_inputs = len(os.listdir(input_frames_dir)) if os.path.exists(input_frames_dir) else 0
|
remaining_inputs = len(os.listdir(input_frames_dir)) if os.path.exists(input_frames_dir) else 0
|
||||||
|
is_coordinator = False
|
||||||
|
|
||||||
if remaining_inputs == 0:
|
if remaining_inputs == 0:
|
||||||
print(f"Job {job.job_id}: All frames already upscaled. Skipping upscaling step.")
|
print(f"Job {job.job_id}: All frames already upscaled. Skipping upscaling step.")
|
||||||
|
|||||||
Reference in New Issue
Block a user