HighCWu / sd-control-lora-v3-canny

huggingface.co
Total runs: 20
24-hour runs: 0
7-day runs: 10
30-day runs: 12
Model's Last Updated: July 31 2024
text-to-image

Introduction of sd-control-lora-v3-canny

Model Details of sd-control-lora-v3-canny

sd-control-lora-v3-canny

These are control-lora-v3 weights trained on runwayml/stable-diffusion-v1-5 with the canny type of conditioning. You can find some example images below.

prompt: best quality, extremely detailed, portrait of a beautiful winged goddess with horns, long wavy black hair, long black dress with silver jewels by tom bagshaw prompt: best quality, extremely detailed, an emo portrait painting. short dark brown messy pixie haircut, large black eyes, antichrist eyes, slightly rounded face, pointed chin, thin lips, small nose, black tank top, black leather jacket, black knee - length skirt, black choker, gold earring, by peter mohrbacher, by rebecca guay, by ron spencer prompt: best quality, extremely detailed, a photograph of a futuristic street scene, brutalist style, straight edges, finely detailed oil painting, impasto brush strokes, soft light, 8 k, dramatic composition, dramatic lighting, sharp focus, octane render, masterpiece, by adrian ghenie and jenny saville and zhang jingna prompt: best quality, extremely detailed, portrait of a dancing eagle woman, beautiful blonde haired lakota sioux goddess, intricate, highly detailed art by james jean, ray tracing, digital painting, artstation, concept art, smooth, sharp focus, illustration, artgerm and greg rutkowski and alphonse mucha, vladimir kush, giger, roger dean, 8 k

Intended uses & limitations
How to use

First clone the control-lora-v3 and cd in the directory:

git clone https://github.com/HighCWu/control-lora-v3
cd control-lora-v3

Then run the python code:

# !pip install opencv-python transformers accelerate
from diffusers import UniPCMultistepScheduler
from diffusers.utils import load_image
from model import UNet2DConditionModelEx
from pipeline import StableDiffusionControlLoraV3Pipeline
import numpy as np
import torch

import cv2
from PIL import Image

# download an image
image = load_image(
    "https://hf.co/datasets/huggingface/documentation-images/resolve/main/diffusers/input_image_vermeer.png"
)
image = np.array(image)

# get canny image
image = cv2.Canny(image, 100, 200)
image = image[:, :, None]
image = np.concatenate([image, image, image], axis=2)
canny_image = Image.fromarray(image)

# load stable diffusion v1-5 and control-lora-v3 
unet: UNet2DConditionModelEx = UNet2DConditionModelEx.from_pretrained(
    "runwayml/stable-diffusion-v1-5", subfolder="unet", torch_dtype=torch.float16
)
unet = unet.add_extra_conditions(["canny"])
pipe = StableDiffusionControlLoraV3Pipeline.from_pretrained(
    "runwayml/stable-diffusion-v1-5", unet=unet, torch_dtype=torch.float16
)
# load attention processors
pipe.load_lora_weights("HighCWu/sd-control-lora-v3-canny")

# speed up diffusion process with faster scheduler and memory optimization
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
# remove following line if xformers is not installed
pipe.enable_xformers_memory_efficient_attention()

pipe.enable_model_cpu_offload()

# generate image
generator = torch.manual_seed(0)
image = pipe(
    "futuristic-looking woman", num_inference_steps=20, generator=generator, image=canny_image
).images[0]
image.show()
Limitations and bias

[TODO: provide examples of latent issues and potential remediations]

Training details

[TODO: describe the data used to train the model]

Runs of HighCWu sd-control-lora-v3-canny on huggingface.co

20
Total runs
0
24-hour runs
4
3-day runs
10
7-day runs
12
30-day runs

More Information About sd-control-lora-v3-canny huggingface.co Model

More sd-control-lora-v3-canny license Visit here:

https://choosealicense.com/licenses/creativeml-openrail-m

sd-control-lora-v3-canny huggingface.co

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

sd-control-lora-v3-canny huggingface.co Url

https://huggingface.co/HighCWu/sd-control-lora-v3-canny

HighCWu sd-control-lora-v3-canny online free

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

HighCWu sd-control-lora-v3-canny online free url in huggingface.co:

https://huggingface.co/HighCWu/sd-control-lora-v3-canny

sd-control-lora-v3-canny install

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

sd-control-lora-v3-canny install url in huggingface.co:

https://huggingface.co/HighCWu/sd-control-lora-v3-canny

Url of sd-control-lora-v3-canny

sd-control-lora-v3-canny huggingface.co Url

Provider of sd-control-lora-v3-canny huggingface.co

HighCWu
ORGANIZATIONS

Other API from HighCWu

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 25 2023