Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -111,8 +111,9 @@ def predict(dict, prompt="", negative_prompt = default_negative_prompt, guidance
|
|
111 |
if negative_prompt == "":
|
112 |
negative_prompt = None
|
113 |
|
114 |
-
init_image = dict[
|
115 |
-
mask = dict[
|
|
|
116 |
|
117 |
width, height = get_size(init_image)
|
118 |
|
|
|
111 |
if negative_prompt == "":
|
112 |
negative_prompt = None
|
113 |
|
114 |
+
init_image = Image.fromarray(dict['background'][:, :, :3], 'RGB') #dict['background'].convert("RGB")#.resize((1024, 1024))
|
115 |
+
mask = Image.fromarray(dict['layers'][0][:,:,3], 'L') #dict['layers'].convert("RGB")#.resize((1024, 1024))
|
116 |
+
|
117 |
|
118 |
width, height = get_size(init_image)
|
119 |
|