Views
No views yet
1from ultralytics import YOLO
2from huggingface_hub import hf_hub_download
3
4# Download model
5model_path = hf_hub_download(repo_id="akul-29/Retail-Shelf-Gap-Detection_Model", filename="best.pt")
6model = YOLO(model_path)
7
8# Run inference
9results = model("path_to_your_image.jpg")
10results.show()