Downloads · 30 days
16
6% of all-time downloads
David19930/YoloS-David
YoloS-David is a object detection model from David19930. Use it when you need objects located in an image. The card lists the license as apache-2.0.
This repository contains a custom YOLOS model fine-tuned on the Balloon Dataset for object detection tasks. The model was trained using the PyTorch Lightning framework and is available for inference and further fine-t…
Downloads · 30 days
16
6% of all-time downloads
All-time downloads
275
Public
Parameters
30.7M
491 MB on disk
Likes
0
Public
Click a slice to open those files.
.ckpt368 MB · 75%
From the Hugging Face model README
This repository contains a custom YOLOS model fine-tuned on the Balloon Dataset for object detection tasks. The model was trained using the PyTorch Lightning framework and is available for inference and further fine-tuning.
hustvl/yolos-smallYou can install the necessary libraries using:
pip install transformers torch torchvision
You can load and use the model with the following code:
from transformers import AutoModelForObjectDetection, AutoFeatureExtractor
from PIL import Image
import torch
# Load model and feature extractor
model_name = "your-username/my-custom-yolos-model"
model = AutoModelForObjectDetection.from_pretrained(model_name)
feature_extractor = AutoFeatureExtractor.from_pretrained(model_name)
# Load an image
image = Image.open("path/to/your/image.jpg")
# Preprocess the image
inputs = feature_extractor(images=image, return_tensors="pt")
pixel_values = inputs['pixel_values']
# Perform inference
model.eval()
with torch.no_grad():
outputs = model(pixel_values=pixel_values)
# Visualize the results
# (Insert visualization code here)
If you use this model in your research, please cite:
Copy code
@misc{my-custom-yolos-model,
author = {Your Name},
title = {YOLOS Fine-tuned on Balloon Dataset},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/your-username/my-custom-yolos-model}},
}
This model is licensed under the MIT License. Feel free to use, modify, and distribute it as you see fit.
You can copy and paste this Markdown into your README file on Hugging Face.