WeavePrompt / README.md
kevin1kevin1k's picture
Upload folder using huggingface_hub
81c7b48 verified
|
raw
history blame
901 Bytes
metadata
title: WeavePrompt
emoji: 🎨
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 5.44.1
pinned: false
license: mit
app_port: 7860

WeavePrompt

Iterative prompt refinement for text-to-image models. Given a target image, WeavePrompt automatically generates and refines text prompts to make a model's output resemble the target image, using vision-language models and perceptual metrics.

Features

  • Upload a target image
  • Step-by-step prompt optimization
  • View prompt and generated image at each iteration
  • Full optimization history

Installation

  1. Clone the repository:
    git clone <repo-url>
    cd WeavePrompt
    
  2. Install dependencies:
    uv venv
    uv sync
    source .venv/bin/activate
    

Usage

Run the demo app:

streamlit run app.py

Follow the instructions in the browser to upload an image and step through the optimization process.