CoolFace
Modelpublic

alvarobartt/ghibli-characters-flux-lora

sourceHugging Faceotherupdated 2y agoView on Hugging Face
66likes210downloads
Model Card

Studio Ghibli Characters - FLUX.1 Dev LoRA

<Gallery />

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

python
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.