Kahsolt / stable-diffusion-webui-prompt-travel

Travel between prompts in the latent space to make pseudo-animation, extension script for AUTOMATIC1111/stable-diffusion-webui.
The Unlicense
252 stars 22 forks source link

AttributeError: 'ScriptRunner' object has no attribute 'before_process_batch' #19

Closed skabbit closed 1 year ago

skabbit commented 1 year ago

The last commit for the WebUI extension now produces an error:

AttributeError: 'ScriptRunner' object has no attribute 'before_process_batch'

I suppose it is related to compatibility with the WebUI version v1.9.

Kahsolt commented 1 year ago

This script hook before_process_batch has been introduced into webui core since https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a2d635ad135241a0a40f67f7e1638c9c8a4ded04 (dated back 02/22), could you just update your webui? I have no idea about webui's version strings, since it keeps rolling update, what is the v1.9?

VisualBoy commented 1 year ago

Same problem here, latest update broke it :(

Kahsolt commented 1 year ago

As I mentioned above, this before_process_batch commit has been merged into webui core for weeks. The latest ptravel also added it in and it works on my machine :) This hook might be used for some other extensions, though ptravel itself does not use it.

For those guys still gets in trouble or reluctant to update webui due to some reason, I pushed a compatible fix, it should temporarily work for you ;)