openfree/flux-chatgpt-ghibli-lora

openfree
Texto a imagen

LoRA de texto a imagen para FLUX.1-dev que adapta el modelo base a una estética tipo Ghibli. Está pensado para generar escenas ilustradas, suaves y cinematográficas a partir de prompts, usando la palabra activadora `ghibli`.

Como usar

Instalación y uso con Diffusers:

pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    dtype=torch.bfloat16,
    device_map="cuda"
)
pipe.load_lora_weights("openfree/flux-chatgpt-ghibli-lora")

prompt = "a boy and a girl looking out of a window with a cat perched on the window sill. There is a bicycle parked in front of them and a plant with flowers to the right side of the image. The wall behind them is visible in the background. "
image = pipe(prompt).images[0]

Ejemplo alternativo con AutoPipelineForText2Image:

from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained(
    'black-forest-labs/FLUX.1-dev',
    torch_dtype=torch.bfloat16
).to('cuda')

pipeline.load_lora_weights(
    'openfree/flux-chatgpt-ghibli-lora',
    weight_name='flux-chatgpt-ghibli-lora.safetensors'
)

image = pipeline('a boy and a girl looking out of a window with a cat perched on the window sill. There is a bicycle parked in front of them and a plant with flowers to the right side of the image. The wall behind them is visible in the background. ').images[0]
image.save("my_image.png")

Para activar el estilo, el prompt debe incluir ghibli.

Funcionalidades

Adaptador LoRA para el modelo base `black-forest-labs/FLUX.1-dev`.
Generación de imágenes desde texto con Diffusers y pesos en formato Safetensors.
Usa `ghibli` como palabra activadora para inducir el estilo visual del modelo.
Compatible con flujos locales como ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, Draw Things y DiffusionBee.
Licencia indicada: `flux-1-dev-non-commercial-license`.
Disponible en Hugging Face con proveedores de inferencia y espacios relacionados para texto o imagen a estilo Ghibli.

Casos de uso

Crear ilustraciones de texto a imagen con estética Ghibli usando FLUX.1-dev.
Convertir descripciones narrativas en escenas visuales cálidas, fantásticas o cinematográficas.
Generar personajes, robots, naves, bosques, paisajes alienígenas y talleres flotantes con apariencia ilustrada.
Usar el LoRA en pipelines locales de generación de imagen como ComfyUI o Diffusers.
Prototipar espacios o herramientas de conversión de texto o imagen a estilo Ghibli.