Studio Ghibli Characters - FLUX.1 Dev LoRA
Model description
This repository contains the LoRA adapter for FLUX.1-dev, fine-tuned using fal.ai/models/fal-ai/flux-lora-general-training with Studio Ghibli images free-to-use downloaded manually from https://ghibli.jp and hosted at alvarobartt/ghibli-characters.
Prompt Template
You should use the following template (defined when annotating the images with the captions) to trigger the image generation:
"Ghibli style [character description] with [distinctive features], [action or pose], [environment or background], [lighting or atmosphere], [additional details]"
Inference with diffusers
import torch
from diffusers import DiffusionPipeline
model_id = "black-forest-labs/FLUX.1-dev"
adapter_id = "alvarobartt/ghibli-characters-flux-lora"
pipeline = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
pipeline.load_lora_weights(adapter_id)
pipeline.to("cuda")
prompt = (
"Ghibli style futuristic stormtrooper with glossy white armor and a sleek helmet,"
" standing heroically on a lush alien planet, vibrant flowers blooming around, soft"
" sunlight illuminating the scene, a gentle breeze rustling the leaves"
)
image = pipeline(
prompt=prompt,
num_inference_steps=30,
width=1024,
height=768,
guidance_scale=3.5,
).images[0]
image.save("ghibli.png", format="PNG")
Disclaimer
This fine-tune is for personal-use only, with no-commercial purposes as stated within the licensing.
The FLUX.1-dev fine-tunes fall under the same license as FLUX.1-dev i.e. https://huggingface.co./black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md; and the Studio Ghibli dataset is released with a custom non-commercial license based on the interpretation of the findings on their website.
- Downloads last month
- 212
Model tree for alvarobartt/ghibli-characters-flux-lora
Base model
black-forest-labs/FLUX.1-dev