fountai commited on
Commit
6b323b9
·
1 Parent(s): 180c6d2

fix images

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(np_image, cv2.COLOR_BGR2RGB)
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