s9roll7 / ebsynth_utility

AUTOMATIC1111 UI extension for creating videos using img2img and ebsynth.
1.25k stars 127 forks source link

Permission error Generation TEST!!! is selected for more than one generation test. #134

Open dillonrcarp opened 10 months ago

dillonrcarp commented 10 months ago

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'extensions/ebsynth_utility\generation_test_proj\controlnet_input\00001.png' Time taken: 0.0 sec.

Error encountered when "Generation TEST!!(Ignore Project directory and use the image and mask specified in the main UI)" is selected after one generation. Not able to purge the temp files because they are being used by python.

Traceback (most recent call last): File "D:\SD\stable-diffusion-webui\modules\call_queue.py", line 57, in f res = list(func(*args, *kwargs)) File "D:\SD\stable-diffusion-webui\modules\call_queue.py", line 36, in f res = func(args, *kwargs) File "D:\SD\stable-diffusion-webui\modules\img2img.py", line 236, in img2img processed = modules.scripts.scripts_img2img.run(p, args) File "D:\SD\stable-diffusion-webui\modules\scripts.py", line 700, in run processed = script.run(p, *script_args) File "D:\SD\stable-diffusion-webui\extensions\ebsynth_utility\scripts\custom_script.py", line 765, in run shutil.rmtree(controlnet_input_path) File "C:\Users\dillo\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 749, in rmtree return _rmtree_unsafe(path, onerror) File "C:\Users\dillo\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 619, in _rmtree_unsafe onerror(os.unlink, fullname, sys.exc_info()) File "C:\Users\dillo\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 617, in _rmtree_unsafe os.unlink(fullname) PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'extensions/ebsynth_utility\generation_test_proj\controlnet_input\00001.png'