huggingface.co
Total runs: 534
24-hour runs: 44
7-day runs: 166
30-day runs: 374
Model's Last Updated: January 06 2025
text-to-image

Introduction of TDD

Model Details of TDD

Target-Driven Distillation

Introduction

Target-Driven Distillation: Consistency Distillation with Target Timestep Selection and Decoupled Guidance

Update

[2024.08.22]:Upload the TDD LoRA weights of Stable Diffusion XL, YamerMIX and RealVisXL-V4.0, fast text-to-image generation.

  • sdxl_tdd_lora_weights.safetensors
  • yamermix_tdd_lora_weights.safetensors
  • realvis_tdd_sdxl_lora_weights.safetensors

Thanks to Yamer and SG_161222 for developing YamerMIX and RealVisXL V4.0 respectively.

Usage

You can directly download the model in this repository. You also can download the model in python script:

from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="RedAIGC/TDD", filename="sdxl_tdd_lora_weights.safetensors", local_dir="./tdd_lora")
# !pip install opencv-python transformers accelerate 
import torch
import diffusers
from diffusers import StableDiffusionXLPipeline
from tdd_scheduler import TDDScheduler

device = "cuda"
tdd_lora_path = "tdd_lora/sdxl_tdd_lora_weights.safetensors"

pipe = StableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16").to(device)

pipe.scheduler = TDDSchedulerPlus.from_config(pipe.scheduler.config)
pipe.load_lora_weights(tdd_lora_path, adapter_name="accelerate")
pipe.fuse_lora()

prompt = "A photo of a cat made of water."

image = pipe(
    prompt=prompt,
    num_inference_steps=4,
    guidance_scale=1.7,
    eta=0.2, 
    generator=torch.Generator(device=device).manual_seed(546237),
).images[0]

image.save("tdd.png")

Runs of RED-AIGC TDD on huggingface.co

534
Total runs
44
24-hour runs
107
3-day runs
166
7-day runs
374
30-day runs

More Information About TDD huggingface.co Model

TDD huggingface.co

TDD huggingface.co is an AI model on huggingface.co that provides TDD's model effect (), which can be used instantly with this RED-AIGC TDD model. huggingface.co supports a free trial of the TDD model, and also provides paid use of the TDD. Support call TDD model through api, including Node.js, Python, http.

RED-AIGC TDD online free

TDD huggingface.co is an online trial and call api platform, which integrates TDD's modeling effects, including api services, and provides a free online trial of TDD, you can try TDD online for free by clicking the link below.

RED-AIGC TDD online free url in huggingface.co:

https://huggingface.co/RED-AIGC/TDD

TDD install

TDD is an open source model from GitHub that offers a free installation service, and any user can find TDD on GitHub to install. At the same time, huggingface.co provides the effect of TDD install, users can directly use TDD installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

TDD install url in huggingface.co:

https://huggingface.co/RED-AIGC/TDD

Url of TDD

Provider of TDD huggingface.co

RED-AIGC
ORGANIZATIONS

Other API from RED-AIGC

huggingface.co

Total runs: 70
Run Growth: 33
Growth Rate: 47.14%
Updated:November 09 2024