Spaces:
Runtime error
Runtime error
fix ip
Browse files
app.py
CHANGED
@@ -50,8 +50,8 @@ def process_image(image, prompt, steps, use_lora, use_controlnet, use_depth, use
|
|
50 |
self.num_images_per_prompt = num_images_per_prompt
|
51 |
self.seed = seed if seed else 123456789
|
52 |
self.neg_prompt = neg_prompt
|
53 |
-
self.img_prompt = Image.open(image)
|
54 |
-
self.neg_img_prompt = Image.open(negative_image) if negative_image else None
|
55 |
self.ip_scale = 1.0
|
56 |
self.neg_ip_scale = 1.0
|
57 |
self.local_path = None
|
|
|
50 |
self.num_images_per_prompt = num_images_per_prompt
|
51 |
self.seed = seed if seed else 123456789
|
52 |
self.neg_prompt = neg_prompt
|
53 |
+
self.img_prompt = Image.open(image) if use_ip else None
|
54 |
+
self.neg_img_prompt = Image.open(negative_image) if negative_image and use_ip else None
|
55 |
self.ip_scale = 1.0
|
56 |
self.neg_ip_scale = 1.0
|
57 |
self.local_path = None
|