mokady commited on
Commit
18fa5fa
1 Parent(s): 4422333

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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["image"].convert("RGB")#.resize((1024, 1024))
115
- mask = dict["mask"].convert("L")#.resize((1024, 1024))
 
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