Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -76,8 +76,8 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=5, steps=30, str
|
|
76 |
negative_prompt = None
|
77 |
|
78 |
|
79 |
-
init_image = dict[
|
80 |
-
mask = dict[
|
81 |
|
82 |
w,h = get_size(init_image)
|
83 |
|
|
|
76 |
negative_prompt = None
|
77 |
|
78 |
|
79 |
+
init_image = Image.fromarray(dict['background'][:, :, :3], 'RGB') #dict['background'].convert("RGB")#.resize((1024, 1024))
|
80 |
+
mask = Image.fromarray(dict['layers'][0][:,:,3], 'L') #dict['layers'].convert("RGB")#.resize((1024, 1024))
|
81 |
|
82 |
w,h = get_size(init_image)
|
83 |
|