Downloads · 30 days
31
37% of all-time downloads
Banaxi-Tech/BananaMind-FaceDetect-V1
BananaMind-FaceDetect-V1 is a object detection model from Banaxi-Tech. Use it when you need objects located in an image. It is set up for transformers. The card lists the license as cc-by-nc-nd-4.0.
BananaMind FaceDetect V1 is an early face detection model from Banaxi Tech. It uses a custom Hugging Face Transformers-compatible wrapper around torchvision.models.detection.ssdlite320mobilenetv3large and is intended…
Downloads · 30 days
31
37% of all-time downloads
All-time downloads
84
Public
Parameters
2.2M
18.1 MB on disk
Likes
1
Public
Click a slice to open those files.
.pt9.1 MB · 50%
From the Hugging Face model README
BananaMind FaceDetect V1 is an early face detection model from Banaxi Tech. It uses a custom Hugging Face Transformers-compatible wrapper around torchvision.models.detection.ssdlite320_mobilenet_v3_large and is intended for research and experimentation.
This model is licensed under CC-BY-NC-ND-4.0 and inherits non-commercial/no-derivatives usage restrictions from the WIDER FACE dataset license listed on Hugging Face. Do not treat this model as Apache, MIT, or commercial-use safe.
Banaxi-Tech/BananaMind-FaceDetect-V1The repository includes:
model.safetensors: main safetensors checkpointoriginal_model.pt: original PyTorch checkpointconfig.json: custom Transformers configconfiguration_banaxi_face_detector.py: custom config classmodeling_banaxi_face_detector.py: custom model wrapperREADME.md: model cardThis model was trained on WIDER FACE using the Hugging Face dataset repository CUHK-CSE/wider_face.
WIDER FACE is a face detection benchmark containing face bounding boxes across images with large variation in face scale, pose, occlusion, and scene type. The Hugging Face dataset page lists the dataset license as CC-BY-NC-ND-4.0.
Please also cite and follow the terms for WIDER FACE when using this model:
@inproceedings{yang2016wider,
title={WIDER FACE: A Face Detection Benchmark},
author={Yang, Shuo and Luo, Ping and Loy, Chen Change and Tang, Xiaoou},
booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2016}
}
CUHK-CSE/wider_facessdlite320_mobilenet_v3_large0..1This repository uses custom remote code:
configuration_banaxi_face_detector.pymodeling_banaxi_face_detector.pyLoad the model with trust_remote_code=True.
import torch
from transformers import AutoModel
model = AutoModel.from_pretrained(
"Banaxi-Tech/BananaMind-FaceDetect-V1",
trust_remote_code=True,
)
model.eval()
# pixel_values must be a tensor shaped B x 3 x H x W.
# Values should be RGB floats in the range 0..1.
pixel_values = torch.rand(1, 3, 320, 320)
with torch.no_grad():
outputs = model(pixel_values=pixel_values)
prediction = outputs[0]
boxes = prediction["boxes"] # xyxy pixel coordinates
scores = prediction["scores"] # confidence scores
labels = prediction["labels"] # label 1 means face
keep = scores >= 0.5
face_boxes = boxes[keep]
face_scores = scores[keep]
Outputs follow the torchvision detection format:
boxes: predicted bounding boxes in xyxy pixel coordinatesscores: confidence scoreslabels: predicted class labelsLabel 1 means face. A confidence threshold around 0.5 to 0.7 is recommended, depending on the use case.
This model is released under CC-BY-NC-ND-4.0.
The training dataset, WIDER FACE as hosted at CUHK-CSE/wider_face, is also listed on Hugging Face as CC-BY-NC-ND-4.0. Because of these terms, this model should be used for research/non-commercial purposes and should not be presented as commercially usable or permissively licensed.