Update app.py
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def infer(
|
|
| 107 |
enhanced_prompt = prompt
|
| 108 |
enhanced_prompt_2 = prompt
|
| 109 |
if latent_file:
|
| 110 |
-
sd_image_a = Image.open(latent_file.name)
|
| 111 |
print("-- using image file and loading ip-adapter --")
|
| 112 |
#if image_encoder_path=="laion/CLIP-ViT-H-14-laion2B-s32B-b79K":
|
| 113 |
# sd_image_a.resize((384,384), Image.LANCZOS)
|
|
|
|
| 107 |
enhanced_prompt = prompt
|
| 108 |
enhanced_prompt_2 = prompt
|
| 109 |
if latent_file:
|
| 110 |
+
sd_image_a = Image.open(latent_file.name).convert('RGB')
|
| 111 |
print("-- using image file and loading ip-adapter --")
|
| 112 |
#if image_encoder_path=="laion/CLIP-ViT-H-14-laion2B-s32B-b79K":
|
| 113 |
# sd_image_a.resize((384,384), Image.LANCZOS)
|