Attempting to run seed travel script; after first image is produced, I get this error:
AttributeError: 'NoneType' object has no attribute 'ema_scope'
This seems to happen no matter what options I choose within the script.
Traceback:
File "C:\stable-diffusion-webui_portable\modules\ui.py", line 185, in f
res = list(func(*args, *kwargs))
File "C:\stable-diffusion-webui_portable\webui.py", line 54, in f
res = func(args, *kwargs)
File "C:\stable-diffusion-webui_portable\modules\txt2img.py", line 45, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, args)
File "C:\stable-diffusion-webui_portable\modules\scripts.py", line 282, in run
processed = script.run(p, *script_args)
File "C:\stable-diffusion-webui_portable\scripts\seed_travel.py", line 157, in run
proc = process_images(p)
File "C:\stable-diffusion-webui_portable\modules\processing.py", line 427, in process_images
res = process_images_inner(p)
File "C:\stable-diffusion-webui_portable\modules\processing.py", line 487, in process_images_inner
with torch.no_grad(), p.sd_model.ema_scope():
AttributeError: 'NoneType' object has no attribute 'ema_scope'
I checked the value of p.sd_model within the loop in seed_travel.py:run ("for i in range(numsteps):...[interpolate seed]), right before the call to process_images(p).
Before the first image, it's good, but on the next i in the loop, it has become "None". I checked process_images_inner and sure enough, at the end it sets p.sd_model to "None". So that's definitely the problem...I don't quite see how it would ever work?
Edit: this is due to commit af758e9 which added the lines to set models to none. Noted as an issue in AUTOMATIC1111's repo.
Thank you for the edit. I saw your issue just as I was on my way to bed and didn't have time to check closer. I hope everything works ok now after the fix.
Attempting to run seed travel script; after first image is produced, I get this error: AttributeError: 'NoneType' object has no attribute 'ema_scope'
This seems to happen no matter what options I choose within the script.
Traceback: File "C:\stable-diffusion-webui_portable\modules\ui.py", line 185, in f res = list(func(*args, *kwargs)) File "C:\stable-diffusion-webui_portable\webui.py", line 54, in f res = func(args, *kwargs) File "C:\stable-diffusion-webui_portable\modules\txt2img.py", line 45, in txt2img processed = modules.scripts.scripts_txt2img.run(p, args) File "C:\stable-diffusion-webui_portable\modules\scripts.py", line 282, in run processed = script.run(p, *script_args) File "C:\stable-diffusion-webui_portable\scripts\seed_travel.py", line 157, in run proc = process_images(p) File "C:\stable-diffusion-webui_portable\modules\processing.py", line 427, in process_images res = process_images_inner(p) File "C:\stable-diffusion-webui_portable\modules\processing.py", line 487, in process_images_inner with torch.no_grad(), p.sd_model.ema_scope(): AttributeError: 'NoneType' object has no attribute 'ema_scope'
I checked the value of p.sd_model within the loop in seed_travel.py:run ("for i in range(numsteps):...[interpolate seed]), right before the call to process_images(p). Before the first image, it's good, but on the next i in the loop, it has become "None". I checked process_images_inner and sure enough, at the end it sets p.sd_model to "None". So that's definitely the problem...I don't quite see how it would ever work?
Edit: this is due to commit af758e9 which added the lines to set models to none. Noted as an issue in AUTOMATIC1111's repo.