File size: 2,734 Bytes
6708201 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# AutoAnotationModel
This repository contains the custom model checkpoint `Model.pth` and a powerful annotation pipeline developed by **Rajkumar G** for real-time object auto-annotation and YOLO dataset generation.
## π§ What This Is
`AutoAnotationModel` enables:
- βοΈ Multi-class object detection using template-based region matching
- π§ Intelligent segmentation refinement using custom logic
- πΌοΈ Live visual preview of annotations through a Flask web application
- π€ YOLO-format `.txt` export for training detection models
- π¦ Exportable annotation packages including image + labels
The model and its web interface are used in applications like:
- Bin/Cover detection
- Mechanical part annotation
- Industrial dataset creation
- Real-time inspection and labeling
---
## π§ Model Information
- **Model Name:** `Model.pth`
- **Hosted on:** [Hugging Face - Rajkumar57/AutoAnotationModel](https://huggingface.co/Rajkumar57/AutoAnotationModel)
- **Created by:** Rajkumar G
- **Frameworks Used:** Python, PyTorch, OpenCV, Flask
- **Use Case:** Real-time annotation & YOLO label generation
---
## π How to Use the Model
```python
from huggingface_hub import hf_hub_download
from segment_anything import sam_model_registry, SamPredictor
import torch
# Download model from Hugging Face Hub
model_path = hf_hub_download(repo_id="Rajkumar57/AutoAnotationModel", filename="Model.pth")
# Load model
model = sam_model_registry["vit_h"](checkpoint=model_path)
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
predictor = SamPredictor(model)
```
---
## π Key Features of My Annotation System
- β
Web interface for user-defined class names and class IDs
- π Upload template images for each class
- π Automatic region detection and segmentation
- π€ YOLO-format `.txt` annotation generation
- πΈ Annotated image previews
- π¦ One-click export as `.zip`
---
## π Files Included
| File | Description |
|-------------|----------------------------------------------|
| `Model.pth` | Custom-trained model for annotation tasks |
| `README.md` | Documentation for usage |
---
## π¨βπ» Author
**Rajkumar G**
π§ [email protected]
π [LinkedIn](https://linkedin.com/in/rajkumar) | [GitHub](https://github.com/rajkumar)
---
## π License
This model and pipeline were fully created by **Rajkumar G** and are released strictly for **academic and research purposes only**.
For commercial use, integration support, or contributions, feel free to reach out directly.
---
*Proudly developed and maintained by Rajkumar G. If you use this project, kindly give credit or cite this repository.*
|