P01yH3dr0n commited on
Commit
0d3d342
1 Parent(s): 64da8ce

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -88,8 +88,8 @@ def generate_novelai_image(
88
  if use_inp:
89
  payload['action'] = "infill"
90
  payload['model'] = 'nai-diffusion-3-inpainting'
91
- payload['parameters']['mask'] = image2base64(inp_img['mask'])
92
- payload['parameters']['image'] = image2base64(inp_img['image'])
93
  payload['parameters']['extra_noise_seed'] = seed
94
  payload['parameters']['strength'] = inp_str
95
  # Send the POST request
 
88
  if use_inp:
89
  payload['action'] = "infill"
90
  payload['model'] = 'nai-diffusion-3-inpainting'
91
+ payload['parameters']['mask'] = image2base64(inp_img['layers'][0])
92
+ payload['parameters']['image'] = image2base64(inp_img['background'])
93
  payload['parameters']['extra_noise_seed'] = seed
94
  payload['parameters']['strength'] = inp_str
95
  # Send the POST request