Run this model with HF Jobs
Run UEmmanuel5/ProFSAM-Fire-Detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/UEmmanuel5/ProFSAM-Fire-Detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/UEmmanuel5/ProFSAM-Fire-Detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use UEmmanuel5/ProFSAM-Fire-Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use UEmmanuel5/ProFSAM-Fire-Detector with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("UEmmanuel5/ProFSAM-Fire-Detector", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
YOLOv11n Fire Detector (ProFSAM)
Paper: https://arxiv.org/abs/2510.21782
Code: https://github.com/UEmmanuel5/ProFSAM
Weights: Fire_best.pt
Intended use
Bounding-box detection of fire to prompt SAM2/MobileSAM/TinySAM in the ProFSAM pipeline.
Training data
FASDD subset: classes fire and neither_firenorsmoke only. Total images used: 51,749 (12,550 fire, 39,199 neither_firenorsmoke).
Training setup (summary)
PyTorch 2.0, CUDA 12.4, main GPU: GTX 1050 Ti (4 GB).
Ultralytics YOLOv11n initialized then trained 100 epochs.
Script used
from ultralytics import YOLO
import torch
torch.backends.cudnn.benchmark = True
model = YOLO("path/to/yolo11n.pt")
train_results = model.train(
data="path/to/FASDD_CV_Fire/data.yaml",
epochs=100,
imgsz=640,
batch=16,
optimizer="AdamW",
lr0=1e-4,
lrf=0.01,
dropout=0.15,
weight_decay=5e-4,
device=0,
val=False,
save=True,
plots=False
)
Detector metrics (FASDD fire-only subset)
Test data
If you do not have test images, I placed 4 test images from the khan dataset to be used during your testing phase. Test the model here
βοΈ License
- Model weights (
Fire_best.pt): AGPL-3.0 (Ultralytics-trained). - Space code (this repo): Apache-2.0.
π Acknowledgements
- Ultralytics YOLO11
- SAM / SAM2 ecosystem and community
π Citation
If this demo or the model is useful in your research, please cite:
Manuscript
@inproceedings{profsam2025,
author = {Emmanuel U. Ugwu and Xinming Zhang},
title = {Promptable Fire Segmentation: Unleashing SAM2's Potential for Real-Time Mobile Deployment with Strategic Bounding Box Guidance},
booktitle = {ICIGP '26},
year = {2026},
address = {Wuhan, China},
month = jan,
note = {to appear}
}
Model/Code
@software{profsam2025,
author = {Ugwu, Emmanuel U. and Zhang, Xinming},
title = {Promptable Fire Segmentation: Unleashing SAM2βs Potential for Real-Time Mobile Deployment with Strategic Bounding Box Guidance},
year = {2025},
doi = {10.5281/zenodo.17340313},
url = {https://doi.org/10.5281/zenodo.17340313}
}
- Downloads last month
- 96
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("UEmmanuel5/ProFSAM-Fire-Detector", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True)