Downloads · 30 days
1
4% of all-time downloads
biali/yoso-normal-v1-8-1
yoso-normal-v1-8-1 is a image-to-image model from biali. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as apache-2.0.
This repository contains the weights of StableNormal: Reducing Diffusion Variance for Stable and Sharp Normal
Downloads · 30 days
1
4% of all-time downloads
All-time downloads
28
Public
Repo size
2.6 GB
Likes
1
Public
Click a slice to open those files.
.safetensors2.6 GB · 100%
From the Hugging Face model README
This repository contains the weights of StableNormal: Reducing Diffusion Variance for Stable and Sharp Normal
See the Github repository: https://github.com/Stable-X/StableNormal regarding installation instructions.
The model can then be used as follows:
import torch
from PIL import Image
# Load an image
input_image = Image.open("path/to/your/image.jpg")
# Create predictor instance
predictor = torch.hub.load("hugoycj/StableNormal", "StableNormal_turbo", trust_repo=True, yoso_version='yoso-normal-v1-8-1')
# Generate normal map using alpha channel for masking
normal_map = predictor(rgba_image, data_type="object") # Will mask out background, if alpha channel is avalible, else use birefnet
# Apply the model to the image
normal_image = predictor(input_image)
# Save or display the result
normal_image.save("output/normal_map.png")