Skip to main content

A tiny little diffusion drawing app

Project description

tldream

A tiny little diffusion drawing app

total download version Open in Colab

https://user-images.githubusercontent.com/3998421/223580181-6375fc76-414a-4837-b7ab-4fb07509afd3.mp4

Features

  • Support any Stable Diffusion 1.5 model on HuggingFace or local ckpt/safetensors
  • Support multi-language translation: zh, ja, ko, ru

Quick Start

# In order to use the GPU, install cuda version of pytorch first.
# pip install torch==1.13.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
pip install tldream
tldream --model runwayml/stable-diffusion-v1-5 --device cuda

If you are not familiar with python/pip, you can try this installer: Windows 1-click Installer

Command line arguments

  • --listen / --no-listen: If true, start server at 0.0.0.0 [default: no-listen]
  • --port INTEGER: [default: 4242]
  • --device TEXT: Device to use (cuda, cpu or mps) [default: cuda]
  • --model TEXT: Any HuggingFace Stable Diffusion model id. Or local ckpt/safetensors path [default: runwayml/stable-diffusion-v1-5]
  • --lang TEXT: Translation language model. ['en', 'zh', 'ja', 'ko', 'ru'] [default: en]
  • --low-vram / --no-low-vram: Use low vram mode [default: no-low-vram]
  • --fp32 / --no-fp32: Use float32 mode (For NVIDIA 16xx GPU) [default: no-fp32]
  • --nsfw-filter / --no-nsfw-filter: Enable nsfw filter [default: nsfw-filter]
  • --cache-dir TEXT: Model cache directory, by default model downloaded to ~/.cache/huggingface/hub
  • --local-files-only / --no-local-files-only: Not connect to HuggingFace server, add this flag if model has been downloaded [default: no-local-files-only]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tldream-0.6.1.tar.gz (13.7 MB view hashes)

Uploaded Source

Built Distribution

tldream-0.6.1-py3-none-any.whl (13.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page