Spaces:
Running
Running
Commit
·
0e4c0f7
1
Parent(s):
856d473
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,7 @@ def process(init_image, mask):
|
|
82 |
print(f'liuyz_1_here_')
|
83 |
|
84 |
# image, alpha_channel = load_img(origin_image_bytes)
|
|
|
85 |
original_shape = init_image.shape
|
86 |
interpolation = cv2.INTER_CUBIC
|
87 |
|
@@ -189,6 +190,7 @@ def read_content(file_path: str) -> str:
|
|
189 |
|
190 |
def predict(dict, prompt=""):
|
191 |
init_image = dict["image"] # .convert("RGB") #.resize((512, 512))
|
|
|
192 |
mask = dict["mask"] # .convert("RGB") #.resize((512, 512))
|
193 |
output = process(init_image, mask)
|
194 |
# output = pipe(prompt = prompt, image=init_image, mask_image=mask,guidance_scale=7.5)
|
|
|
82 |
print(f'liuyz_1_here_')
|
83 |
|
84 |
# image, alpha_channel = load_img(origin_image_bytes)
|
85 |
+
# Origin image shape: (512, 512, 3)
|
86 |
original_shape = init_image.shape
|
87 |
interpolation = cv2.INTER_CUBIC
|
88 |
|
|
|
190 |
|
191 |
def predict(dict, prompt=""):
|
192 |
init_image = dict["image"] # .convert("RGB") #.resize((512, 512))
|
193 |
+
print(init_image)
|
194 |
mask = dict["mask"] # .convert("RGB") #.resize((512, 512))
|
195 |
output = process(init_image, mask)
|
196 |
# output = pipe(prompt = prompt, image=init_image, mask_image=mask,guidance_scale=7.5)
|