Downloads · 30 days
14
1% of all-time downloads
sudo-ai/controlnet-zp11-depth-v1
controlnet-zp11-depth-v1 is a machine learning model from sudo-ai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as openrail.
Recommended version of diffusers is 0.20.2 with torch 2.
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
2.5K
Public
Parameters
364M
1.5 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
From the Hugging Face model README
Recommended version of diffusers is 0.20.2 with torch 2.
Usage Example:
import torch
import requests
from PIL import Image
from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler, ControlNetModel
# Load the pipeline
pipeline = DiffusionPipeline.from_pretrained(
"sudo-ai/zero123plus-v1.1", custom_pipeline="sudo-ai/zero123plus-pipeline",
torch_dtype=torch.float16
)
pipeline.add_controlnet(ControlNetModel.from_pretrained(
"sudo-ai/controlnet-zp11-depth-v1", torch_dtype=torch.float16
), conditioning_scale=0.75)
# Feel free to tune the scheduler
pipeline.scheduler = EulerAncestralDiscreteScheduler.from_config(
pipeline.scheduler.config, timestep_spacing='trailing'
)
pipeline.to('cuda:0')
# Run the pipeline
cond = Image.open(requests.get("https://d.skis.ltd/nrp/sample-data/0_cond.png", stream=True).raw)
depth = Image.open(requests.get("https://d.skis.ltd/nrp/sample-data/0_depth.png", stream=True).raw)
result = pipeline(cond, depth_image=depth).images[0]
result.show()
result.save("output.png")