Instructions to use davidfant/sd-ecom-brightswimwear with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use davidfant/sd-ecom-brightswimwear 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("davidfant/sd-ecom-brightswimwear", 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
stable-diffusion-inpainting, 4/5 breast size, updated code (14000 steps)
Browse files- samples/0/0.png +0 -0
- samples/0/1.png +0 -0
- samples/0/2.png +0 -0
- samples/0/3.png +0 -0
- samples/1/0.png +0 -0
- samples/1/1.png +0 -0
- samples/1/2.png +0 -0
- samples/1/3.png +0 -0
- samples/2/0.png +0 -0
- samples/2/1.png +0 -0
- samples/2/2.png +0 -0
- samples/2/3.png +0 -0
- samples/3/0.png +0 -0
- samples/3/1.png +0 -0
- samples/3/2.png +0 -0
- samples/3/3.png +0 -0
- text_encoder/pytorch_model.bin +1 -1
- unet/diffusion_pytorch_model.bin +1 -1
samples/0/0.png
CHANGED
|
|
samples/0/1.png
CHANGED
|
|
samples/0/2.png
CHANGED
|
|
samples/0/3.png
CHANGED
|
|
samples/1/0.png
CHANGED
|
|
samples/1/1.png
CHANGED
|
|
samples/1/2.png
CHANGED
|
|
samples/1/3.png
CHANGED
|
|
samples/2/0.png
CHANGED
|
|
samples/2/1.png
CHANGED
|
|
samples/2/2.png
CHANGED
|
|
samples/2/3.png
CHANGED
|
|
samples/3/0.png
CHANGED
|
|
samples/3/1.png
CHANGED
|
|
samples/3/2.png
CHANGED
|
|
samples/3/3.png
CHANGED
|
|
text_encoder/pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 492308087
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b4e2717540c726e9a06c70daf5f2cf559273b2418b362c7e049440e2655c677
|
| 3 |
size 492308087
|
unet/diffusion_pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3438421925
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5ca713993a57b5cb247a1578a92c1007e855e07333e4748d55cceef5fc5768f
|
| 3 |
size 3438421925
|