stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Add kwargs argument to process_tokens()
sd_hijack.py / process_tokens()
- add
kwargsargument. - caller set
textargument to process_tokens()
The extension implementation will be able to use text to determine something.
Breaking change
- if there is some extension hooks
process_tokensand it does not expect extra arguments, it will need update. - for aesthetic-gradients , I wrote PR. https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients/pull/2
process tokens does not even work with the whole text
please don't add stuff just to add stuff
The real problem I have is https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3398 . But the current structure cannot solve that.
Original PR with aesthetic gradients also applied its effects to negative prompt, so that must have been the original intention. In any case your change definitely does not solve the problem.