CoolFace
Modelpublic

zyuzuguldu/vton-lora-pattern2

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes10downloads
Model Card

Virtual Try-On LoRA: Pattern2

<div align="center"> <img src="https://img.shields.io/badge/Type-LoRA-blue" alt="Type"> <img src="https://img.shields.io/badge/Fabric-Pattern2-purple" alt="Fabric"> <img src="https://img.shields.io/badge/Base-SDXL-green" alt="Base Model"> <img src="https://img.shields.io/badge/License-Apache%202.0-yellow" alt="License"> </div>

๐Ÿ“‹ Model Description

This is a LoRA (Low-Rank Adaptation) model fine-tuned for generating realistic Pattern2 fabric textures in virtual try-on applications. The model has been trained on high-quality pattern2 texture images to capture the unique characteristics of this fabric type.

Key Features

  • โ€”๐ŸŽจ Specialized for Pattern2: Captures authentic fabric texture and appearance
  • โ€”๐Ÿš€ Lightweight: Only 3.1 MB - efficient for deployment
  • โ€”๐ŸŽฏ SDXL-based: Built on Stable Diffusion XL for high-quality generation
  • โ€”๐Ÿ‘” Virtual Try-On Ready: Designed for fashion and garment visualization
  • โ€”โšก Fast Inference: LoRA architecture enables quick generation

๐ŸŽฏ Intended Use

Primary Use Cases

  1. 1.Virtual Try-On Systems: Apply pattern2 textures to garment designs
  2. 2.Fashion Design: Visualize how garments look with pattern2 fabric
  3. 3.E-commerce: Generate product images with different fabric textures
  4. 4.Style Transfer: Transfer pattern2 texture to existing garment images

Out of Scope

  • โ€”General-purpose image generation
  • โ€”Non-fabric texture generation
  • โ€”Photo-realistic face generation

๐Ÿš€ Quick Start

Installation

bash
pip install diffusers transformers accelerate safetensors

Basic Usage

python
from diffusers import DiffusionPipeline
import torch

# Load base model
pipe = DiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16,
    variant="fp16"
)
pipe.to("cuda")

# Load LoRA weights
pipe.load_lora_weights(
    "zyuzuguldu/vton-lora-pattern2",
    weight_name="pytorch_lora_weights.safetensors"
)

# Generate image
prompt = "a garment with pattern2 fabric texture, high quality, detailed"
image = pipe(
    prompt,
    num_inference_steps=30,
    guidance_scale=7.5
).images[0]

image.save("output.png")

Advanced Usage with Multiple LoRAs

python
from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16
).to("cuda")

# Load with custom weight
pipe.load_lora_weights(
    "zyuzuguldu/vton-lora-pattern2",
    weight_name="pytorch_lora_weights.safetensors",
    adapter_name="pattern2"
)

# Set LoRA scale (0.0 to 1.0)
pipe.set_adapters(["pattern2"], adapter_weights=[0.8])

# Generate
prompt = "a stylish jacket with pattern2 texture, fashion photography"
negative_prompt = "blurry, low quality, distorted"

image = pipe(
    prompt,
    negative_prompt=negative_prompt,
    num_inference_steps=40,
    guidance_scale=8.0
).images[0]

image.save("styled_garment.png")

Using with Virtual Try-On Pipeline

python
from diffusers import StableDiffusionXLInpaintPipeline
import torch

# Load inpainting pipeline for try-on
pipe = StableDiffusionXLInpaintPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16
).to("cuda")

# Load LoRA
pipe.load_lora_weights("zyuzuguldu/vton-lora-pattern2")

# Apply texture to masked garment area
result = pipe(
    prompt="garment with pattern2 fabric",
    image=original_image,
    mask_image=garment_mask,
    num_inference_steps=30
).images[0]

๐Ÿ“Š Training Details

Training Data

  • โ€”Dataset: lora-garment-textures
  • โ€”Category: Pattern2
  • โ€”Images: High-resolution pattern2 fabric texture samples
  • โ€”Resolution: Variable (resized to 1024x1024 for training)

Training Configuration

  • โ€”Base Model: Stable Diffusion XL 1.0
  • โ€”LoRA Rank: 15
  • โ€”Training Framework: Diffusers + PEFT
  • โ€”Optimizer: AdamW
  • โ€”Training Steps: ~2000-8000 (varied by category)
  • โ€”Hardware: GPU-accelerated training

Hyperparameters

yaml
learning_rate: 1e-4
lora_rank: 15
lora_alpha: 15
batch_size: 4
resolution: 1024x1024
mixed_precision: fp16
gradient_accumulation_steps: 4

๐Ÿ“ Model Files

  • โ€”pytorch_lora_weights.safetensors (3.1 MB): Main LoRA weights in SafeTensors format

๐ŸŽจ Prompt Engineering Tips

Recommended Prompts

"a garment with pattern2 fabric texture, high quality, detailed"
"stylish clothing made of pattern2 material, professional photography"
"fashion design with pattern2 texture, studio lighting"
"pattern2 fabric garment, detailed texture, 4k quality"

Negative Prompts

"blurry, low quality, distorted, unrealistic, artificial"
"pixelated, noisy, artifacts, bad texture"

Tips

  1. 1.Texture Keywords: Include words like "fabric", "texture", "material" for best results
  2. 2.Quality Modifiers: Add "high quality", "detailed", "4k" for better outputs
  3. 3.LoRA Weight: Adjust between 0.6-1.0 for strength control
  4. 4.Inference Steps: Use 30-50 steps for balanced quality/speed
  5. 5.Guidance Scale: 7.0-8.5 works well for most prompts

โš–๏ธ Limitations and Bias

Limitations

  • โ€”Optimized specifically for pattern2 textures
  • โ€”May not generalize well to other fabric types
  • โ€”Requires SDXL base model for best results
  • โ€”Performance depends on prompt quality

Potential Biases

  • โ€”Training data may reflect specific regional or cultural fabric styles
  • โ€”May perform better on certain garment types seen during training

๐Ÿ“ License

This model is released under the Apache 2.0 License.

  • โ€”Free for commercial and non-commercial use
  • โ€”Requires attribution to the original authors
  • โ€”No warranty provided

๐Ÿ”— Related Resources

Models

Datasets

Demos

๐Ÿ“š Citation

If you use this model in your research or project, please cite:

bibtex
@misc{vton_lora_pattern2,
  author = {zyuzuguldu},
  title = {Virtual Try-On LoRA: Pattern2},
  year = {2026},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/zyuzuguldu/vton-lora-pattern2}}
}

๐Ÿค Contributing

Found an issue or want to improve the model? Feel free to reach out or open a discussion!

๐Ÿ‘จโ€๐Ÿ’ป Maintainer

Created and maintained by @zyuzuguldu


Part of the Virtual Try-On Project

Repository: Virtual-Try-On

Made with โค๏ธ for the fashion-tech and AI community