rkv1990 commited on
Commit
c312091
·
verified ·
1 Parent(s): d00f5f1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -118,6 +118,7 @@ def main():
118
  # Load input image and its corresponding mask
119
  fg_mask = load_image("https://huggingface.co/rkv1990/FLUX.1-Fill-dev-outpainting/resolve/main/beauty-products-mask.png").convert("L")
120
  input_image= load_image("https://huggingface.co/rkv1990/FLUX.1-Fill-dev-outpainting/resolve/main/beauty-products.png").convert("RGB")
 
121
 
122
  masked_image = prepare_masked_image(foreground=input_image, mask=fg_mask)
123
 
@@ -131,7 +132,7 @@ def main():
131
  output = pipe(
132
  prompt="A mist-covered forest at dawn, with pale golden light filtering through ancient, twisted trees. Soft fog swirls around delicate wildflowers glowing faintly with bioluminescence.",
133
  image=masked_image,
134
- mask_image=fg_mask,
135
  #height=1024,
136
  #width=1024,
137
  guidance_scale=30,
 
118
  # Load input image and its corresponding mask
119
  fg_mask = load_image("https://huggingface.co/rkv1990/FLUX.1-Fill-dev-outpainting/resolve/main/beauty-products-mask.png").convert("L")
120
  input_image= load_image("https://huggingface.co/rkv1990/FLUX.1-Fill-dev-outpainting/resolve/main/beauty-products.png").convert("RGB")
121
+ inpaint_mask = np.array(255-np.array(fg_mask))
122
 
123
  masked_image = prepare_masked_image(foreground=input_image, mask=fg_mask)
124
 
 
132
  output = pipe(
133
  prompt="A mist-covered forest at dawn, with pale golden light filtering through ancient, twisted trees. Soft fog swirls around delicate wildflowers glowing faintly with bioluminescence.",
134
  image=masked_image,
135
+ mask_image=inpaint_mask,
136
  #height=1024,
137
  #width=1024,
138
  guidance_scale=30,