Downloads Β· 30 days
0
mlworks90/fashion-inpainting-system
fashion-inpainting-system is a image-to-image model from mlworks90. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as openrail.
π¨ Advanced AI-powered fashion transformation system that preserves body pose and facial identity while generating new clothing styles.
Downloads Β· 30 days
0
Access
Public
Updated Sep 2, 2025
Repo size
1.9 MB
Likes
0
Public
Click a slice to open those files.
.png1.9 MB Β· 82%
From the Hugging Face model README
π¨ Advanced AI-powered fashion transformation system that preserves body pose and facial identity while generating new clothing styles.
Input: Person wearing any outfit
Output: Same person in a completely different outfit while maintaining:
This system is designed for creative and artistic purposes only. By using this software, you agree to:
β ALLOWED USES:
β PROHIBITED USES:
Pose Extraction System (25.3% coverage)
Hand Exclusion Logic
Safety-Aware Generation
Checkpoint Compatibility
Python 3.8+
torch>=1.13.0
diffusers>=0.21.0
transformers>=4.21.0
controlnet_aux>=0.4.0
opencv-python>=4.6.0
pillow>=9.0.0
numpy>=1.21.0
# Clone the repository
git clone https://github.com/mlworks90/fashion-inpainting-system.git
cd fashion-inpainting-system
# Install dependencies
pip install -r requirements.txt
# Optional: Install with CUDA support
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
from fashion_safety_checker import create_fashion_safety_pipeline
pipeline = create_fashion_safety_pipeline()
# Transform outfit
result = pipeline.safe_fashion_transformation(
source_image_path="person_in_casual_wear.jpg",
checkpoint_path="fashion_checkpoint.safetensors",
outfit_prompt="elegant red evening dress",
output_path="person_in_evening_dress.jpg",
face_scale=0.90 # Manual face to body ratio adjustment
)
if result['success']:
print("β
Fashion transformation completed")
else:
print(f"Blocking reason: {result['blocking_reason']}")
print(f"User message: {result['user_message']}")
pipeline = create_fashion_safety_pipeline(safety_mode="legacy_strict")
# legacy_strict - highest safety restrictions
# fashion_strict - conservative outfits only
# fashion_moderate - default level. Suitable for most garment types except some swimwear.
# fashion_permissive - most permissive mode. Be aware of inappropriate outputs possibility!
| Input | Target Prompt | Output |
|---|---|---|
| Casual wear | "elegant evening dress" | ![]() |
| Casual wear | "Business suit" | ![]() |
| Casual wear | "Business Costume" | ![]() |
This project is licensed under Apache License 2.0, allowing:
For commercial deployments, we offer:
Contact: [email protected]
We welcome contributions! Please read our Contributing Guidelines and Code of Conduct.
# Clone repository
git clone https://github.com/mlworks90/fashion-inpainting-system.git
cd fashion-inpainting-system
# Install in development mode
pip install -e .
# Run tests
python -m pytest tests/
This system builds upon excellent open-source projects:
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Made with β€οΈ for the AI and Fashion communities