fix images
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def execute(image, prompt):
|
|
112 |
img = cv2.imread(image)
|
113 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
114 |
|
115 |
-
imgs = [ random_positioning(img)]
|
116 |
|
117 |
pipe.load_lora_weights("XLabs-AI/flux-RealismLora", weight_name='lora.safetensors')
|
118 |
response = []
|
@@ -127,7 +127,7 @@ def execute(image, prompt):
|
|
127 |
|
128 |
im = Image.open('base_image.jpg')
|
129 |
np_arr = np.array(im)
|
130 |
-
rgb_image = cv2.cvtColor(
|
131 |
im = Image.fromarray(rgb_image)
|
132 |
mask = Image.open('mask.jpg')
|
133 |
|
|
|
112 |
img = cv2.imread(image)
|
113 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
114 |
|
115 |
+
imgs = [ random_positioning(img), random_positioning(img)]
|
116 |
|
117 |
pipe.load_lora_weights("XLabs-AI/flux-RealismLora", weight_name='lora.safetensors')
|
118 |
response = []
|
|
|
127 |
|
128 |
im = Image.open('base_image.jpg')
|
129 |
np_arr = np.array(im)
|
130 |
+
rgb_image = cv2.cvtColor(np_arr, cv2.COLOR_BGR2RGB)
|
131 |
im = Image.fromarray(rgb_image)
|
132 |
mask = Image.open('mask.jpg')
|
133 |
|