Sunix2026 commited on
Commit
8ca7c64
·
verified ·
1 Parent(s): 13e0e66

Upload YOLOv11 segmentation model

Browse files
Files changed (3) hide show
  1. README.md +71 -0
  2. model.pt +3 -0
  3. requirements.txt +6 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: ultralytics
3
+ tags:
4
+ - yolov11
5
+ - object-detection
6
+ - instance-segmentation
7
+ - computer-vision
8
+ - deep-learning
9
+ license: agpl-3.0
10
+ ---
11
+
12
+ # YOLOv11 Segmentation Model
13
+
14
+ This is a custom trained YOLOv11 segmentation model.
15
+
16
+ ## Model Details
17
+
18
+ - **Model Type**: YOLOv11 Instance Segmentation
19
+ - **Framework**: Ultralytics
20
+ - **Task**: Instance Segmentation
21
+
22
+ ## Usage
23
+
24
+ ### Using Ultralytics
25
+
26
+ ```python
27
+ from ultralytics import YOLO
28
+
29
+ # Load model
30
+ model = YOLO('model.pt')
31
+
32
+ # Run inference
33
+ results = model('image.jpg')
34
+
35
+ # Process results
36
+ for result in results:
37
+ masks = result.masks # Segmentation masks
38
+ boxes = result.boxes # Bounding boxes
39
+
40
+ # Visualize
41
+ result.show()
42
+ ```
43
+
44
+ ### Using Hugging Face Inference API
45
+
46
+ ```python
47
+ import requests
48
+
49
+ API_URL = "https://api-inference.huggingface.co/models/Sunix2026/Port-model"
50
+ headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
51
+
52
+ def query(filename):
53
+ with open(filename, "rb") as f:
54
+ data = f.read()
55
+ response = requests.post(API_URL, headers=headers, data=data)
56
+ return response.json()
57
+
58
+ output = query("image.jpg")
59
+ ```
60
+
61
+ ## Training Details
62
+
63
+ Add your training details here:
64
+ - Dataset used
65
+ - Training epochs
66
+ - Hyperparameters
67
+ - Performance metrics
68
+
69
+ ## License
70
+
71
+ AGPL-3.0
model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f685fe1282b37eed408aa87310738d5d33be6247210bdd3fe3252756c4e27850
3
+ size 124882977
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ ultralytics>=8.0.0
2
+ torch>=2.0.0
3
+ torchvision>=0.15.0
4
+ opencv-python>=4.7.0
5
+ pillow>=9.0.0
6
+ numpy>=1.23.0