Questions tagged [inpainting]

6 questions
2
votes
0 answers

How to inpaint using the stable diffusion webui api?

i am asking how to inpaint using the stable diffusion webui api. I am currently searching for a python source where i select an mask image and an prompt anf the the masked content is beeing filled with the prompt. But how to do this with Stable…
0
votes
0 answers

optical flow: how to fill in the area behind a moving object?

I need to apply a style to a video using the optical flow algorithm. However, there's a problem: how to fill in the area behind a moving object. please suggest me an algorithm that can take the adjacent image area and stretch it into the area behind…
0
votes
0 answers

Convert stable diffusion unet part of the model to onnx

Given the unet part of the stable diffusion model: https://huggingface.co/stabilityai/stable-diffusion-2-inpainting/tree/main/unet how can I convert it to model.onnx and weights.bin? I tried the following but it doesn't create any model: import…
Martin
  • 219
  • 1
  • 10
0
votes
2 answers

How to fill objects on image with adjacent colors?

Currently, I am facing troubles with coloring the pink boxes with adjacent colors, so that the image would look more real. My image is this: So far, I used CV2 package and achieved this: My code: up = np.array([151,157,255]) pink_mask =…
0
votes
1 answer

Removing light reflection from an image

I have a RGB image with some barcodes. In my algorithm, I apply gradients to identify the barcodes but the problem comes when I have light reflection on a barcode. So I've been trying to remove the reflection but also trying to preserve the barcode…
0
votes
0 answers

How to automate inpainting process from stable diffusion?

Hello dear StackOverflow community, I am currently working on a project with stable diffusion. In this project the clothes of a person in a photo should be exchanged with any other clothes. If I do it manually (via stable diffsuion web ui) it works…