from huggingface_hub import hf_hub_download
from ultralytics import YOLO
path = hf_hub_download("Bingsu/adetailer", "face_yolov8n.pt")
model = YOLO(path)
import cv2
from PIL import Image
img = "https://farm5.staticflickr.com/4139/4887614566_6b57ec4422_z.jpg"
output = model(img)
pred = output[0].plot()
pred = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
pred = Image.fromarray(pred)
pred
Unsafe files
Since
getattr
is classified as a dangerous pickle function, any segmentation model that uses it is classified as unsafe.
All models were created and saved using the official
ultralytics
library, so it's okay to use files downloaded from a trusted source.
adetailer huggingface.co is an AI model on huggingface.co that provides adetailer's model effect (), which can be used instantly with this Runware adetailer model. huggingface.co supports a free trial of the adetailer model, and also provides paid use of the adetailer. Support call adetailer model through api, including Node.js, Python, http.
adetailer huggingface.co is an online trial and call api platform, which integrates adetailer's modeling effects, including api services, and provides a free online trial of adetailer, you can try adetailer online for free by clicking the link below.
Runware adetailer online free url in huggingface.co:
adetailer is an open source model from GitHub that offers a free installation service, and any user can find adetailer on GitHub to install. At the same time, huggingface.co provides the effect of adetailer install, users can directly use adetailer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.