Image-to-Image
Diffusers
Safetensors
Core ML
StableDiffusionInpaintPipeline
image-editing
local-ai
clover-image
inpainting
stable-diffusion
Instructions to use neonforestmist/Clover-Image-Tiny-Inpaint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use neonforestmist/Clover-Image-Tiny-Inpaint with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import AutoPipelineForInpainting from diffusers.utils import load_image # switch to "mps" for apple devices pipe = AutoPipelineForInpainting.from_pretrained("neonforestmist/Clover-Image-Tiny-Inpaint", dtype=torch.float16, device_map="cuda") img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png" mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png" image = load_image(img_url).resize((1024, 1024)) mask_image = load_image(mask_url).resize((1024, 1024)) prompt = "a tiger sitting on a park bench" generator = torch.Generator(device="cuda").manual_seed(0) image = pipe( prompt=prompt, image=image, mask_image=mask_image, guidance_scale=8.0, num_inference_steps=20, # steps between 15 and 30 work well for us strength=0.99, # make sure to use `strength` below 1.0 generator=generator, ).images[0] - Notebooks
- Google Colab
- Kaggle
Align model-card buttons in four columns and two rows
Browse files
README.md
CHANGED
|
@@ -22,22 +22,18 @@ tags:
|
|
| 22 |
Image + mask + prompt 路 Clover's shared components 路 Diffusers and separate Core ML resources.
|
| 23 |
</p>
|
| 24 |
|
| 25 |
-
<table align="center">
|
| 26 |
<tr>
|
| 27 |
-
<td align="center"><a href="https://huggingface.co/neonforestmist/Clover-Image-Tiny"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/model.svg" alt="HF MODEL"
|
| 28 |
-
<td align="center"><a href="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/inpaint.svg" alt="INPAINTING"
|
|
|
|
|
|
|
| 29 |
</tr>
|
| 30 |
<tr>
|
| 31 |
-
<td align="center"><a href="https://
|
| 32 |
-
<td align="center"><a href="https://github.com/neonforestmist/Clover-Image-Tiny
|
| 33 |
-
</
|
| 34 |
-
<
|
| 35 |
-
<td align="center"><a href="https://github.com/neonforestmist/clover-image-tiny-lora-trainer"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/trainer.svg" alt="LORA TRAINER" height="36"></a></td>
|
| 36 |
-
<td align="center"><a href="https://github.com/neonforestmist/Clover-Image-Tiny"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/source.svg" alt="GITHUB SOURCE" height="36"></a></td>
|
| 37 |
-
</tr>
|
| 38 |
-
<tr>
|
| 39 |
-
<td align="center"><a href="https://github.com/neonforestmist/Clover-Image-Tiny/actions/workflows/quality.yml"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/checks.svg" alt="QUALITY CHECKS" height="36"></a></td>
|
| 40 |
-
<td align="center"><a href="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/blob/main/LICENSE"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/license.svg" alt="MODEL LICENSE" height="36"></a></td>
|
| 41 |
</tr>
|
| 42 |
</table>
|
| 43 |
|
|
|
|
| 22 |
Image + mask + prompt 路 Clover's shared components 路 Diffusers and separate Core ML resources.
|
| 23 |
</p>
|
| 24 |
|
| 25 |
+
<table align="center" width="100%">
|
| 26 |
<tr>
|
| 27 |
+
<td align="center" width="25%"><a href="https://huggingface.co/neonforestmist/Clover-Image-Tiny"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/model.svg" alt="HF MODEL" width="100%"></a></td>
|
| 28 |
+
<td align="center" width="25%"><a href="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/inpaint.svg" alt="INPAINTING" width="100%"></a></td>
|
| 29 |
+
<td align="center" width="25%"><a href="https://huggingface.co/spaces/neonforestmist/Clover-Image-Tiny-Demo"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/live-demo.svg" alt="LIVE DEMO" width="100%"></a></td>
|
| 30 |
+
<td align="center" width="25%"><a href="https://github.com/neonforestmist/Clover-Image-Tiny-iOS"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/ios-app.svg" alt="IPHONE / CORE ML" width="100%"></a></td>
|
| 31 |
</tr>
|
| 32 |
<tr>
|
| 33 |
+
<td align="center" width="25%"><a href="https://github.com/neonforestmist/clover-image-tiny-lora-trainer"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/trainer.svg" alt="LORA TRAINER" width="100%"></a></td>
|
| 34 |
+
<td align="center" width="25%"><a href="https://github.com/neonforestmist/Clover-Image-Tiny"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/source.svg" alt="GITHUB SOURCE" width="100%"></a></td>
|
| 35 |
+
<td align="center" width="25%"><a href="https://github.com/neonforestmist/Clover-Image-Tiny/actions/workflows/quality.yml"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/checks.svg" alt="QUALITY CHECKS" width="100%"></a></td>
|
| 36 |
+
<td align="center" width="25%"><a href="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/blob/main/LICENSE"><img src="https://huggingface.co/neonforestmist/Clover-Image-Tiny-Inpaint/resolve/main/assets/links/license.svg" alt="MODEL LICENSE" width="100%"></a></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</tr>
|
| 38 |
</table>
|
| 39 |
|