Stable Diffusion v1.5 - LoRA Fine-tuned on Dog Images
A fine-tuned Stable Diffusion v1.5 model using LoRA (Low-Rank Adaptation) technique, trained on custom dog images. This model can generate personalized images using the trigger word "sks dog".
Model Details
Model Description
This model is a LoRA adapter fine-tuned on top of Stable Diffusion v1.5, specifically trained to generate images of a particular dog subject. The model uses LoRA technique to efficiently adapt the base model with minimal parameter updates (~3MB adapter vs ~4GB full model), enabling fast training and easy sharing while maintaining high quality outputs.
The model was trained on 5 dog images for 300 epochs, achieving excellent convergence and the ability to generate the subject in various styles, poses, and scenarios.
Developed by: Eray Erdoğan (erdoganeray)
Model type: Text-to-Image Diffusion Model with LoRA Adapter
Language(s): English (prompts)
License: MIT
Finetuned from model: stable-diffusion-v1-5/stable-diffusion-v1-5
Different artistic styles (Van Gogh, Renaissance, cyberpunk)
Important: Use the trigger word "sks dog" in your prompts for best results.
Downstream Use
This model can be integrated into:
Image generation applications
Creative tools and workflows
Custom Stable Diffusion pipelines
Multi-LoRA compositions for complex scene generation
Educational demonstrations of LoRA fine-tuning
Out-of-Scope Use
This model should not be used for:
Generating images of people or other animals not in the training set
Creating deepfakes or misleading content
Any applications that violate ethical guidelines or laws
Commercial use without proper attribution
Bias, Risks, and Limitations
Limited Subject Range: The model is trained on a single dog subject and may not generalize well to other subjects
Training Data Size: Only 5 images were used for training, which limits variation
Trigger Word Dependency: Best results require using "sks dog" in prompts
Inherited Biases: Inherits any biases present in the base Stable Diffusion v1.5 model
Quality Variation: Output quality depends heavily on prompt engineering
Recommendations
Users should:
Always use the trigger word "sks dog" for optimal results
Experiment with different prompts and parameters for best outputs
Be aware that this is a demonstration model trained on limited data
Use negative prompts to avoid unwanted artifacts (e.g., "blurry, bad quality, distorted")
Consider the ethical implications when generating and sharing images
How to Get Started with the Model
Installation
pip install diffusers transformers torch peft
Basic Usage
python
1from diffusers import DiffusionPipeline
2import torch
34# Load base model5pipe = DiffusionPipeline.from_pretrained(6"stable-diffusion-v1-5/stable-diffusion-v1-5",7 torch_dtype=torch.float16
8).to("cuda")910# Load LoRA weights11pipe.load_lora_weights("erdoganeray/finetune-demo")1213# Generate image14prompt ="a photo of sks dog wearing sunglasses"15negative_prompt ="blurry, bad quality, distorted"1617image = pipe(18 prompt=prompt,19 negative_prompt=negative_prompt,20 num_inference_steps=50,21 guidance_scale=7.522).images[0]2324image.save("output.png")
Example Prompts
python
1# Artistic styles2"an oil painting of sks dog in the style of Van Gogh, vibrant colors"3"sks dog as a watercolor painting, soft colors, artistic"4"sks dog as a pixel art character, 8-bit style, retro gaming"56# Themed scenes7"sks dog on a tropical beach at sunset, palm trees, ocean waves"8"sks dog playing in snow, winter wonderland, snowflakes falling"9"sks dog in an underwater scene with colorful coral and fish"1011# Costume variations12"sks dog wearing a golden crown, sitting on a throne, royal"13"sks dog dressed as a superhero with a cape, heroic pose"14"sks dog as a cyberpunk character, neon lights, futuristic city"
Training Details
Training Data
The model was trained on a custom dataset consisting of 5 high-quality images of a specific dog subject. The dataset was preprocessed and augmented to maximize learning from limited data.
Dataset Size: 5 images
Image Resolution: 512x512 pixels
Subject: Single dog subject
Trigger Word: "sks dog"
Training Procedure
Training Hyperparameters
Training regime: Mixed precision (fp16)
Base Model: stable-diffusion-v1-5/stable-diffusion-v1-5