Instructions to use mlworks90/fashion-inpainting-system with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mlworks90/fashion-inpainting-system with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("mlworks90/fashion-inpainting-system") pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -112,11 +112,11 @@ pipeline = create_fashion_safety_pipeline()
|
|
| 112 |
|
| 113 |
# Transform outfit
|
| 114 |
result = pipeline.safe_fashion_transformation(
|
| 115 |
-
source_image_path="
|
| 116 |
-
checkpoint_path="
|
| 117 |
-
outfit_prompt="
|
| 118 |
-
output_path="
|
| 119 |
-
face_scale=0.90
|
| 120 |
)
|
| 121 |
|
| 122 |
if result['success']:
|
|
@@ -235,4 +235,4 @@ Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for detai
|
|
| 235 |
|
| 236 |
---
|
| 237 |
|
| 238 |
-
**Made with ❤️ for the AI and Fashion communities**
|
|
|
|
| 112 |
|
| 113 |
# Transform outfit
|
| 114 |
result = pipeline.safe_fashion_transformation(
|
| 115 |
+
source_image_path="person_in_casual_wear.jpg",
|
| 116 |
+
checkpoint_path="fashion_checkpoint.safetensors",
|
| 117 |
+
outfit_prompt="elegant red evening dress",
|
| 118 |
+
output_path="person_in_evening_dress.jpg",
|
| 119 |
+
face_scale=0.90 # Manual face to body ratio adjustment
|
| 120 |
)
|
| 121 |
|
| 122 |
if result['success']:
|
|
|
|
| 235 |
|
| 236 |
---
|
| 237 |
|
| 238 |
+
**Made with ❤️ for the AI and Fashion communities**
|