Downloads · 30 days
0
prodypanda/pulire-tdm-lora-v1
pulire-tdm-lora-v1 is a text-to-image model from prodypanda. Use it when you need an image from a text prompt. It is set up for peft. The card lists the license as creativeml-openrail-m.
This is a LoRA (Low-Rank Adaptation) adapter trained on the pulire-tdm-lora-v1 concept using the a photo of <pulire-tdm towel dispenser machine trigger. It was trained on the base model prodypanda/pulire-towel-dispens…
Downloads · 30 days
0
Access
Public
Updated Apr 3, 2025
Repo size
55.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors30.3 MB · 54%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) adapter trained on the pulire-tdm-lora-v1 concept using the a photo of <pulire-tdm> towel dispenser machine trigger.
It was trained on the base model prodypanda/pulire-towel-dispenser-concept-v1.
Trigger Prompt: a photo of <pulire-tdm> towel dispenser machine
from diffusers import StableDiffusionPipeline, AutoencoderKL
import torch
# 1. Load the base model pipeline
base_model_id = "prodypanda/pulire-towel-dispenser-concept-v1"
# Optional: Load a specific VAE if needed
# vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse", torch_dtype=torch.float16)
# pipe = StableDiffusionPipeline.from_pretrained(base_model_id, vae=vae, torch_dtype=torch.float16)
pipe = StableDiffusionPipeline.from_pretrained(base_model_id, torch_dtype=torch.float16)
pipe.to("cuda")
# 2. Load the LoRA adapter weights
lora_adapter_id = "prodypanda/pulire-tdm-lora-v1"
pipe.load_lora_weights(lora_adapter_id)
# Optional: Specify subfolders if weights are organized that way in the repo
# pipe.load_lora_weights(lora_adapter_id, subfolder="unet", weight_name="pytorch_lora_weights.safetensors")
# if text_encoder LoRA exists:
# pipe.load_lora_weights(lora_adapter_id, subfolder="text_encoder", weight_name="pytorch_lora_weights.safetensors")
# 3. Generate images!
prompt = "a photo of <pulire-tdm> towel dispenser machine in a vibrant jungle"
negative_prompt = "low quality, blurry, unrealistic"
# Adjust LoRA weight (optional, 0.0-1.0) - requires Diffusers >= 0.17.0
# image = pipe(prompt, negative_prompt=negative_prompt, cross_attention_kwargs={"scale": 0.8}).images[0]
image = pipe(prompt, negative_prompt=negative_prompt).images[0]
image.save("output_lora.png")
# To unload LoRA and use the base model again:
# pipe.unload_lora_weights()
The following images were used for training this concept:
<div style="display: flex; flex-wrap: wrap; gap: 10px;"> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/869f7a26ff2fddde.jpg" alt="concept image 1" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/92ab9ca72abe41ff.jpg" alt="concept image 2" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/8017c57204117cfa.jpg" alt="concept image 3" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/7fea4afd91e3ea7c.jpg" alt="concept image 4" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/d1a6027d71dcf22c.jpg" alt="concept image 5" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/a3e9e828f07de551.jpg" alt="concept image 6" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/e1206342b2969ff4.jpg" alt="concept image 7" width="150"/> <img src="https://huggingface.co/prodypanda/pulire-tdm-lora-v1/resolve/main/concept_images/43afa8f0a0485106.jpg" alt="concept image 8" width="150"/> </div>LoRA training run using the � Diffusers and � PEFT libraries.