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

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -119,7 +119,7 @@ def main():
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
 
125
  # Initialize the FluxFill pipeline
@@ -133,8 +133,8 @@ def main():
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,
139
  num_inference_steps=50,
140
  max_sequence_length=512,
 
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
+ w,h = input_image.size
123
  masked_image = prepare_masked_image(foreground=input_image, mask=fg_mask)
124
 
125
  # Initialize the FluxFill pipeline
 
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=h,
137
+ #width=w,
138
  guidance_scale=30,
139
  num_inference_steps=50,
140
  max_sequence_length=512,