mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-15 02:18:02 -05:00
simplet2i: changed image file handling to work as stated in the [docs](https://pillow.readthedocs.io/en/stable/reference/open_files.html)
This commit is contained in:
@@ -545,7 +545,9 @@ class T2I:
|
||||
return model
|
||||
|
||||
def _load_img(self, path):
|
||||
image = Image.open(path).convert('RGB')
|
||||
with Image.open(path) as img:
|
||||
image = img.convert("RGB")
|
||||
|
||||
w, h = image.size
|
||||
print(f'loaded input image of size ({w}, {h}) from {path}')
|
||||
w, h = map(
|
||||
|
||||
Reference in New Issue
Block a user