XLabs-AI / flux-controlnet-canny-diffusers

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

Introduction of flux-controlnet-canny-diffusers

Model Details of flux-controlnet-canny-diffusers

Description

This repository provides a Diffusers version of FLUX.1-dev Canny 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-canny-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-canny-diffusers/resolve/main/canny_example.png")
prompt = "handsome girl with rainbow hair, anime"

image = pipe(
    prompt,
    control_image=control_image,
    controlnet_conditioning_scale=0.7,
    num_inference_steps=25,
    guidance_scale=3.5,
    height=1024,
    width=768,
    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-canny-diffusers on huggingface.co

153
Total runs
0
24-hour runs
7
3-day runs
56
7-day runs
60
30-day runs

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

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

https://choosealicense.com/licenses/other

flux-controlnet-canny-diffusers huggingface.co

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

flux-controlnet-canny-diffusers huggingface.co Url

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

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

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

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

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

flux-controlnet-canny-diffusers install

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

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

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

Url of flux-controlnet-canny-diffusers

flux-controlnet-canny-diffusers huggingface.co Url

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

XLabs-AI
ORGANIZATIONS

Other API from XLabs-AI