These are LoRA adaption weights for stable-diffusion-v1-5/stable-diffusion-v1-5. The weights were fine-tuned on the lambdalabs/naruto-blip-captions dataset. You can find some example images in the following.
1import torch
2import matplotlib.pyplot as plt
3from diffusers import DiffusionPipeline
4
5# Load the model and move it to GPU (CUDA)
6pipe = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5").to("cuda")
7
8# Load the fine-tuned LoRA weights
9pipe.load_lora_weights("Bhaskar009/SD_1.5_LoRA")
10
11# moving to cuda
12pipe.to("cuda")
13
14# Define a Naruto-themed prompt
15prompt = "A detailed anime-style portrait of Naruto Uzumaki, wearing his Hokage cloak, standing under a bright sunset, ultra-detailed, cinematic lighting, 8K"
16
17# Generate the image
18image = pipe(prompt).images[0]
19
20# Display the image using matplotlib
21plt.figure(figsize=(6, 6))
22plt.imshow(image)
23plt.axis("off") # Hide axes for a clean view
24plt.show()
25
-The model was trained using the 'lambdalabs/naruto-blip-captions' dataset.
-This dataset consists of Naruto character images with BLIP-generated captions.
-It provides a diverse set of characters, poses, and backgrounds,
-making it suitable for fine-tuning Stable Diffusion on anime-style images.
-Base Model: Stable Diffusion v1.5 (stable-diffusion-v1-5/stable-diffusion-v1-5)
-Fine-tuning Method: LoRA (Low-Rank Adaptation)
-Purpose: Specializing Stable Diffusion to generate Naruto-style anime characters.
-Batch Size: 1
-Gradient Accumulation Steps: 4 # Simulates a larger batch size
-Gradient Checkpointing: Enabled # Reduces memory consumption
-Max Training Steps: 800
-Learning Rate: 1e-5 (constant schedule, no warmup)
-Max Gradient Norm: 1 # Prevents gradient explosion
-Memory Optimization: xFormers enabled for efficient attention computation