Downloads · 30 days
9
6% of all-time downloads
schelian-uta/rfdetr-vehcile-39
rfdetr-vehcile-39 is a object detection model from schelian-uta. Use it when you need objects located in an image. It is set up for rfdetr. The card lists the license as apache-2.0.
This is an RF-DETR (Real-time Transformer-based Object Detector) model fine-tuned on a custom dataset.
Downloads · 30 days
9
6% of all-time downloads
All-time downloads
146
Public
Repo size
805 MB
Likes
0
Public
Click a slice to open those files.
.pth134 MB · 50%
From the Hugging Face model README
This is an RF-DETR (Real-time Transformer-based Object Detector) model fine-tuned on a custom dataset.
The model is trained to detect the following classes:
car, truck
from rfdetr import RFDETRMedium
from PIL import Image
# Load the model
model = RFDETRMedium(
pretrain_weights="hf://schelian-uta/rfdetr-vehcile-39/checkpoint_best_total.pth"
)
model.optimize_for_inference()
# Run inference
image = Image.open("your_image.jpg")
detections = model.predict(image, threshold=0.5)
print(f"Found {len(detections)} detections")
import torch
from huggingface_hub import hf_hub_download
# Download the model weights
model_path = hf_hub_download(
repo_id="schelian-uta/rfdetr-vehcile-39",
filename="pytorch_model.bin"
)
# Load the state dict
state_dict = torch.load(model_path, map_location='cpu')
checkpoint_best_total.pth: Original RF-DETR checkpoint (best model)pytorch_model.bin: Standard PyTorch weights for compatibilityconfig.json: Model configurationclass_names.txt: List of detection classesresults.json: Training results and metricsmetrics_plot.png: Visualization of training metricslog.json: Full training logThis model is released under the Apache 2.0 License.