mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-07 21:02:38 +00:00
add state to interrogate
This commit is contained in:
@@ -136,7 +136,8 @@ class InterrogateModels:
|
|||||||
|
|
||||||
def interrogate(self, pil_image):
|
def interrogate(self, pil_image):
|
||||||
res = ""
|
res = ""
|
||||||
|
shared.state.begin()
|
||||||
|
shared.state.job = 'interrogate'
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if shared.cmd_opts.lowvram or shared.cmd_opts.medvram:
|
if shared.cmd_opts.lowvram or shared.cmd_opts.medvram:
|
||||||
@@ -177,5 +178,6 @@ class InterrogateModels:
|
|||||||
res += "<error>"
|
res += "<error>"
|
||||||
|
|
||||||
self.unload()
|
self.unload()
|
||||||
|
shared.state.end()
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
Reference in New Issue
Block a user