Instructions to use KIMCAHLLIE/shinkai-style-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use KIMCAHLLIE/shinkai-style-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("KIMCAHLLIE/shinkai-style-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
Shinkai-style LoRA (Stable Diffusion 1.5)
This repository contains LoRA weights fine-tuned on top of Stable Diffusion 1.5 to reproduce background-oriented anime-style visuals inspired by Makoto Shinkai.
π Trigger Token
Use the following trigger token in your prompt:
shinkai_makoto_style
π Dataset
- Number of images: 25
- Resolution: 512x512
- Captioning: auto-generated captions + trigger token
- Format:
imagefolder+metadata.jsonl
Dataset is included in this repository:
dataset/
π§ Training Details
- Base model:
runwayml/stable-diffusion-v1-5 - Method: LoRA fine-tuning (Diffusers)
- Training steps: 1500
- Batch size: 1
- Gradient accumulation: 4
- Mixed precision: bf16
- Environment: Google Colab (single GPU)
- Checkpoint resume used due to Colab runtime limits
πΌοΈ Inference Example (Diffusers)
import torch
from diffusers import StableDiffusionPipeline
base_model = "runwayml/stable-diffusion-v1-5"
lora_repo = "KIMCHALLIE/shinkai-style-lora"
pipe = StableDiffusionPipeline.from_pretrained(
base_model,
torch_dtype=torch.float16,
safety_checker=None
).to("cuda")
pipe.load_lora_weights(lora_repo)
prompt = (
"shinkai_makoto_style, rainy city street at dusk, "
"cinematic lighting, detailed background, anime illustration"
)
image = pipe(
prompt=prompt,
num_inference_steps=45,
guidance_scale=6.5
).images[0]
image.save("result.png")
- Downloads last month
- 18
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for KIMCAHLLIE/shinkai-style-lora
Base model
runwayml/stable-diffusion-v1-5