Views
No views yet
Model.pth and a powerful annotation pipeline developed by Rajkumar G for real-time object auto-annotation and YOLO dataset generation.AutoAnotationModel enables:.txt export for training detection modelsModel.pth1from huggingface_hub import hf_hub_download
2from segment_anything import sam_model_registry, SamPredictor
3import torch
4
5# Download model from Hugging Face Hub
6model_path = hf_hub_download(repo_id="Rajkumar57/AutoAnotationModel", filename="Model.pth")
7
8# Load model
9model = sam_model_registry["vit_h"](checkpoint=model_path)
10model = model.to("cuda" if torch.cuda.is_available() else "cpu")
11predictor = SamPredictor(model).txt annotation generation.zip| File | Description |
|---|---|
Model.pth | Custom-trained model for annotation tasks |
README.md | Documentation for usage |