XLabs-AI / flux-controlnet-hed-diffusers

huggingface.co
Total runs: 54
24-hour runs: 0
7-day runs: -7
30-day runs: -7
Model's Last Updated: October 14 2024
text-to-image

Introduction of flux-controlnet-hed-diffusers

Model Details of flux-controlnet-hed-diffusers

Description

This repository provides a Diffusers version of FLUX.1-dev Hed ControlNet checkpoint by Xlabs AI, original repo .

Example Picture 1

How to use

This model can be used directly with the diffusers library

import torch
from diffusers.utils import load_image
from diffusers import FluxControlNetModel
from diffusers.pipelines import FluxControlNetPipeline
from PIL import Image
import numpy as np

generator = torch.Generator(device="cuda").manual_seed(87544357)

controlnet = FluxControlNetModel.from_pretrained(
  "Xlabs-AI/flux-controlnet-hed-diffusers",
  torch_dtype=torch.bfloat16,
  use_safetensors=True,
)
pipe = FluxControlNetPipeline.from_pretrained(
  "black-forest-labs/FLUX.1-dev",
  controlnet=controlnet2,
  torch_dtype=torch.bfloat16
)
pipe.to("cuda")

control_image = load_image("https://huggingface.co/Xlabs-AI/flux-controlnet-hed-diffusers/resolve/main/hed_example.png")
prompt = "photo of woman in the cyberpank city"

image = pipe(
    prompt,
    control_image=control_image,
    controlnet_conditioning_scale=0.7,
    num_inference_steps=25,
    guidance_scale=3.5,
    height=1376,
    width=1024,
    generator=generator,
    num_images_per_prompt=1,
).images[0]

image.save("output_test_controlnet.png")
License

Our weights fall under the FLUX.1 [dev] Non-Commercial License

Runs of XLabs-AI flux-controlnet-hed-diffusers on huggingface.co

54
Total runs
0
24-hour runs
0
3-day runs
-7
7-day runs
-7
30-day runs

More Information About flux-controlnet-hed-diffusers huggingface.co Model

More flux-controlnet-hed-diffusers license Visit here:

https://choosealicense.com/licenses/other

flux-controlnet-hed-diffusers huggingface.co

flux-controlnet-hed-diffusers huggingface.co is an AI model on huggingface.co that provides flux-controlnet-hed-diffusers's model effect (), which can be used instantly with this XLabs-AI flux-controlnet-hed-diffusers model. huggingface.co supports a free trial of the flux-controlnet-hed-diffusers model, and also provides paid use of the flux-controlnet-hed-diffusers. Support call flux-controlnet-hed-diffusers model through api, including Node.js, Python, http.

flux-controlnet-hed-diffusers huggingface.co Url

https://huggingface.co/XLabs-AI/flux-controlnet-hed-diffusers

XLabs-AI flux-controlnet-hed-diffusers online free

flux-controlnet-hed-diffusers huggingface.co is an online trial and call api platform, which integrates flux-controlnet-hed-diffusers's modeling effects, including api services, and provides a free online trial of flux-controlnet-hed-diffusers, you can try flux-controlnet-hed-diffusers online for free by clicking the link below.

XLabs-AI flux-controlnet-hed-diffusers online free url in huggingface.co:

https://huggingface.co/XLabs-AI/flux-controlnet-hed-diffusers

flux-controlnet-hed-diffusers install

flux-controlnet-hed-diffusers is an open source model from GitHub that offers a free installation service, and any user can find flux-controlnet-hed-diffusers on GitHub to install. At the same time, huggingface.co provides the effect of flux-controlnet-hed-diffusers install, users can directly use flux-controlnet-hed-diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

flux-controlnet-hed-diffusers install url in huggingface.co:

https://huggingface.co/XLabs-AI/flux-controlnet-hed-diffusers

Url of flux-controlnet-hed-diffusers

flux-controlnet-hed-diffusers huggingface.co Url

Provider of flux-controlnet-hed-diffusers huggingface.co

XLabs-AI
ORGANIZATIONS

Other API from XLabs-AI