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.
bingsu-adetailer huggingface.co is an AI model on huggingface.co that provides bingsu-adetailer's model effect (), which can be used instantly with this fwwrsd bingsu-adetailer model. huggingface.co supports a free trial of the bingsu-adetailer model, and also provides paid use of the bingsu-adetailer. Support call bingsu-adetailer model through api, including Node.js, Python, http.
bingsu-adetailer huggingface.co is an online trial and call api platform, which integrates bingsu-adetailer's modeling effects, including api services, and provides a free online trial of bingsu-adetailer, you can try bingsu-adetailer online for free by clicking the link below.
fwwrsd bingsu-adetailer online free url in huggingface.co:
bingsu-adetailer is an open source model from GitHub that offers a free installation service, and any user can find bingsu-adetailer on GitHub to install. At the same time, huggingface.co provides the effect of bingsu-adetailer install, users can directly use bingsu-adetailer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.