zsxkib / flux-dev-inpainting

🎨 Fill in masked parts of images with FLUX.1-dev 🖌️

  • Public
  • 139.7K runs
  • GitHub
  • License

Run time and cost

This model costs approximately $0.023 to run on Replicate, or 43 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 17 seconds. The predict time for this model varies significantly based on the inputs.

Readme

FLUX.1 DEV Inpainting Model

About

This is a version of the Flux DEV inpainting model by @skalskip92. We’ve changed it to keep the original image’s shape. The model expects the mask to be the same size as the input image, but you can change this with some settings.

Big thanks to @Gothos13 for helping create this clever inpainting method.

Tips for Use

  • For better results, try using more steps (between 20-30) when creating the image.
  • Play around with the inpainting ‘strength’. Numbers between 0.85-1.0 often work well, but you might need different strengths for different prompts.
  • Keep in mind that Flux wasn’t specially trained for inpainting. There are no specific inpainting parts, which makes this a smart way to use the model’s skills.
  • The model can still handle text in images.

Note

This inpainting method can make great images, but you might need to try a few times to get what you want. Don’t give up if your first try doesn’t look perfect!

For more info and updates, check out the original tweet thread.

Support

If you like my work, please follow me! @zsakib_