fix: file referenced after mutation

This commit is contained in:
Feidorian
2023-11-24 23:29:46 -05:00
parent bfd2099c1c
commit 9bd84248bd
+2 -1
View File
@@ -148,8 +148,9 @@ class WorkflowImageLoader:
chosen_image = self.SELECTION_MODE[selection_mode](image_files)
chosen_image_path = os.path.join(directory, chosen_image)
image, mask = get_comfy_image_mask(chosen_image_path)
tagger.process_file(directory, chosen_image)
return get_comfy_image_mask(chosen_image_path)
return (image, mask)
class WorkflowImageSaver: