StyleShot  by open-mmlab

Style transfer model for arbitrary content/style, no fine-tuning

created 1 year ago
421 stars

Top 71.0% on sourcepulse

GitHubView on GitHub
Project Summary

StyleShot offers generalized style transfer for images, enabling users to apply diverse styles (3D, flat, abstract) to content images without requiring test-time fine-tuning. It targets researchers and artists interested in high-quality, personalized image stylization.

How It Works

StyleShot utilizes a style-aware encoder trained with a decoupling strategy to extract expressive style representations. This is complemented by the StyleGallery dataset, which enhances generalization. A content-fusion encoder further refines image-driven style transfer, allowing for effective style mimicry across various artistic styles.

Quick Start & Requirements

  • Install: pip install -r requirements.txt after cloning the repository.
  • Models: Requires downloading pretrained weights from Hugging Face (Gaojunyao/StyleShot, Gaojunyao/StyleShot_lineart) and additional models like Stable Diffusion v1.5, T2I-Adapter, ControlNet, and CLIP.
  • Environment: Python 3.8 with Conda environment setup.
  • Resources: Requires git lfs for model downloads.
  • Demo: Online demo available on HuggingFace.

Highlighted Details

  • Supports text-driven and image-driven style transfer.
  • Integrates with ControlNet and T2I-Adapter for conditional generation.
  • Provides a dedicated benchmark, StyleBench, for evaluating stylized generation.
  • Offers a ComfyUI integration.

Maintenance & Community

  • Recent updates include ComfyUI integration and HuggingFace demo release.
  • Code is built upon IP-Adapter.
  • Citation details provided.

Licensing & Compatibility

  • The repository does not explicitly state a license in the README.
  • Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The project is released in July 2024, indicating it is relatively new. Specific limitations or known bugs are not detailed in the README.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
45 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.