Dont load image if we are cachine latents

This commit is contained in:
Jaret Burkett
2023-09-12 18:39:41 -06:00
parent b5a2669b74
commit 257da9493d

View File

@@ -234,6 +234,7 @@ class ImageProcessingDTOMixin:
# if we are caching latents, just do that
if self.is_latent_cached:
self.get_latent()
return
try:
img = Image.open(self.path).convert('RGB')
img = exif_transpose(img)