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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file tldream-0.6.1.tar.gz.

File metadata

  • Download URL: tldream-0.6.1.tar.gz
  • Upload date:
  • Size: 13.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for tldream-0.6.1.tar.gz
Algorithm Hash digest
SHA256 c8d95add7a37a684e85e614f98b7938c0677f493a912550db40f05d687fa446a
MD5 4c31277653bc8e8488951ca383f30460
BLAKE2b-256 007ceb6bea7f5d3ade8e16146e5a4ee8aa7988644445d09bccd5a71031ac19b8

See more details on using hashes here.

File details

Details for the file tldream-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: tldream-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for tldream-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc086e7cf58e06ee6fde0cbe847f6d945654253836e5723b313b765a16b46f2
MD5 cf48acdf7687f401393f460ea0b81d63
BLAKE2b-256 b822790ef395adb3c28324442190eb15fe85c4ec557595d234528dd7da44dbc4

See more details on using hashes here.

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