minpeter's picture
Upload folder using huggingface_hub
7637cd4 verified
metadata
language:
  - en
base_model: black-forest-labs/FLUX.1-dev
library_name: diffusers
pipeline_tag: text-to-image
tags:
  - text-to-image
  - image-generation
  - flux
license: other
license_name: flux-1-dev-non-commercial-license
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
widget:
  - output:
      url: assets/image-1.png
    text: a elephant.
  - output:
      url: assets/image-2.png
    text: >-
      Ghibli style sky whale transport ship, its metallic skin adorned with
      traditional Japanese patterns, gliding through cotton candy clouds at
      sunrise. Small floating gardens hang from its sides, where workers in
      futuristic kimonos tend to glowing plants. Rainbow auroras shimmer in the
      background.
  - output:
      url: assets/image-3.png
    text: >-
      A young girl with long, curly black hair and a flowing white dress is
      sitting on the ground, surrounded by wildflowers. She is holding a glowing
      firefly in her hand, watching it flicker gently. The scene is set in a
      meadow at dusk, with the first stars beginning to appear. The light is
      soft and warm, casting a magical glow.

juaner-ghibli-style v2

example image index grid

This model is a conversion of the original model from the fp8 single file format to the Diffusers standalone format.

The script used for the conversion, cast from fp8 to bf16 for convenience:

from diffusers import FluxPipeline, FluxTransformer2DModel
import torch

transformer = (
    FluxTransformer2DModel.from_single_file(
        "./jgs-v2-fp8.safetensors",
        torch_dtype=torch.float8_e4m3fn,
    )
    .to("cuda")
    .to(torch.bfloat16)
)

pipe = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
)

pipe.save_pretrained("./output-model")