Object Detection
ultralytics
Bengali
face-detection
yolov8
bengali-video
caption-assignment
wider-face
Instructions to use Tmanna/yolov8-face-bengali-video with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Tmanna/yolov8-face-bengali-video with ultralytics:
from ultralytics import YOLOvv8 model = YOLOvv8.from_pretrained("Tmanna/yolov8-face-bengali-video") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
YOLOv8n Face Detection β Bengali Video Caption Pipeline
Model Summary
Fine-tuned YOLOv8n for face/person detection in Bengali video frames.
Part of a Bengali video auto-captioning system that combines:
- This model β detects visible faces in frames
- Tmanna/whisper-bengali-final β Bengali speech-to-text
- Rule-based visibility filter β shows caption only when face is on screen
Pipeline Architecture
Video
β
Audio βββ Whisper (Tmanna/whisper-bengali-final) βββ Bengali caption text
β
Frames βββ THIS MODEL (YOLOv8 Face Detection)
β
Visibility Filter (rule-based: len(boxes) > 0)
β
IF face visible β overlay Bengali caption
ELSE β skip caption for this frame
Training Details
| Parameter | Value |
|---|---|
| Base Model | yolov8n.pt (Ultralytics) |
| Dataset | lylmsc/wider-face-for-yolo-training |
| Classes | 1 (face) |
| Epochs | 50 |
| Image Size | 640 Γ 640 |
| Batch Size | 32 |
| Hardware | 2Γ NVIDIA T4 (Kaggle) |
| Optimizer | AdamW + Cosine LR decay |
| Early Stop | patience=10 |
Evaluation Results
Usage
from ultralytics import YOLO
model = YOLO("Tmanna/yolov8-face-bengali-video")
# On a video frame (numpy array or image path)
results = model("frame.jpg", conf=0.25)
faces = results[0].boxes
if len(faces) > 0:
print("Face visible β show Bengali caption")
else:
print("No face β skip caption")
Visibility Filter (no extra model needed)
def should_show_caption(frame_path, face_model, conf=0.25):
results = face_model(frame_path, conf=conf, verbose=False)
return len(results[0].boxes) > 0 # True = show, False = hide
What This Model Does NOT Handle
| Module | Status | Reason |
|---|---|---|
| Bengali STT | β
Handled by Tmanna/whisper-bengali-final |
Pre-existing model |
| Translation | β Not needed | EnglishβBengali not required |
| Speaker Diarization | β οΈ Optional | Not in core pipeline |
| Face Tracking (DeepSORT) | β οΈ Optional | Not in core pipeline |
| Active Speaker Detection | π΄ Hard/Optional | Not in core pipeline |
- Downloads last month
- 25