mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(Pipeline.debug_latents): fix import for moved utility function
This commit is contained in:
parent
faa2558e2f
commit
42355b70c2
@ -942,9 +942,8 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
|
||||
return super().decode_latents(latents)
|
||||
|
||||
def debug_latents(self, latents, msg):
|
||||
from invokeai.backend.image_util import debug_image
|
||||
with torch.inference_mode():
|
||||
from ldm.util import debug_image
|
||||
|
||||
decoded = self.numpy_to_pil(self.decode_latents(latents))
|
||||
for i, img in enumerate(decoded):
|
||||
debug_image(
|
||||
|
Loading…
x
Reference in New Issue
Block a user