Skip to content

About

Generate unique fashion designs and patterns using AI based on your style preferences

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personalized Fashion Designer

An AI fashion assistant that turns user style preferences into original clothing patterns and fashion sketches. Visuals are generated with Arrexel/pattern-diffusion. The system exposes an API (FastAPI) and a lightweight UI (Streamlit).

Features

  • User preferences: colors, patterns, garment types, occasions, trends, optional reference images
  • Image generation: unique patterns and fashion sketches with variations
  • Iteration: refine results with feedback and maintain session context
  • API-first design, modular model adapters, and simple UI for quick testing

Generated Examples

Here are some examples of fashion designs generated by the AI model:

Design 1 Example 1: Fashion design with unique pattern and style

Design 2 Example 2: Fashion design showcasing different color combinations

Design 3 Example 3: Fashion design demonstrating pattern variations

Quickstart

1) Prerequisites

  • Python 3.10+
  • A Hugging Face token with Inference API access

2) Setup

# From the project root
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# Copy and edit environment
cp .env.example .env
# Then edit .env with your Hugging Face token and optional overrides

3) Run the API

uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

Open: http://localhost:8000/docs

4) Run the UI (optional)

streamlit run ui/app.py

The UI will point to the API defined in your .env.

Configuration

Set these in .env:

  • HF_TOKEN: Your Hugging Face token (required)
  • IMAGE_MODEL_ID: Defaults to Arrexel/pattern-diffusion
  • API_HOST: Defaults to http://localhost:8000
  • API_PORT: Defaults to 8000
  • UI_API_BASE: UI API base URL; defaults to http://localhost:8000

Architecture

  • app/main.py: FastAPI app and endpoints
  • app/schemas/*: Pydantic request/response models
  • app/services/*: Prompt builder and session management (SQLite)
  • app/models/*: Model adapters for image generation and text advice (Hugging Face Inference API)
  • ui/app.py: Streamlit client for interactive exploration

Notes

  • The code uses the Hugging Face Inference API for image generation to avoid heavy local GPU requirements. Swap adapters if you prefer running models locally (Diffusers).
  • The session store is a simple SQLite DB located at data/app.db.
  • Image responses are Base64-encoded in JSON; the UI decodes and displays them.

License

MIT

About

Generate unique fashion designs and patterns using AI based on your style preferences

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages