Commit
•
26db735
1
Parent(s):
4eb57af
Update README.md
Browse files
README.md
CHANGED
@@ -3,11 +3,105 @@ license: apache-2.0
|
|
3 |
tags:
|
4 |
- object-detection
|
5 |
- vision
|
6 |
-
datasets:
|
7 |
-
- yolo
|
8 |
widget:
|
9 |
- src: >-
|
10 |
https://huggingface.co/thejagstudio/TrolexFabricDay2Model/resolve/main/results.png
|
11 |
example_title: Result
|
12 |
pipeline_tag: image-segmentation
|
13 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
tags:
|
4 |
- object-detection
|
5 |
- vision
|
|
|
|
|
6 |
widget:
|
7 |
- src: >-
|
8 |
https://huggingface.co/thejagstudio/TrolexFabricDay2Model/resolve/main/results.png
|
9 |
example_title: Result
|
10 |
pipeline_tag: image-segmentation
|
11 |
+
---
|
12 |
+
# Model Card for YOLOv8 Defect Segmentation Model
|
13 |
+
|
14 |
+
## Model Details
|
15 |
+
|
16 |
+
### Model Description
|
17 |
+
|
18 |
+
This YOLOv8 model is designed for defect segmentation on fabric. It is capable of detecting and segmenting various types of defects such as tears, holes, stains, and irregularities on fabric surfaces. The model is trained using the YOLO (You Only Look Once) architecture, which enables real-time object detection and segmentation.
|
19 |
+
|
20 |
+
- **Developed by:** Ebest
|
21 |
+
- **Model type:** Object Detection and Segmentation
|
22 |
+
- **Language(s):** Python, PyTorch
|
23 |
+
- **License:** apache-2.0
|
24 |
+
- **Finetuned from model:** YOLOv8
|
25 |
+
|
26 |
+
### Model Sources
|
27 |
+
|
28 |
+
- **Repository:** https://github.com/TheJagStudio/pipeliner
|
29 |
+
|
30 |
+
## Uses
|
31 |
+
|
32 |
+
### Direct Use
|
33 |
+
|
34 |
+
This model can be used directly for detecting and segmenting defects on fabric surfaces in real-time or on static images.
|
35 |
+
|
36 |
+
### Downstream Use
|
37 |
+
|
38 |
+
This model can be fine-tuned for specific fabric types or defect categories, and integrated into quality control systems in textile industries.
|
39 |
+
|
40 |
+
### Out-of-Scope Use
|
41 |
+
|
42 |
+
This model may not perform well on detecting defects on non-textile surfaces or in environments with highly complex backgrounds.
|
43 |
+
|
44 |
+
## Bias, Risks, and Limitations
|
45 |
+
|
46 |
+
The model's performance may vary based on factors such as lighting conditions, fabric texture, and defect severity. It may struggle with detecting subtle defects or distinguishing defects from intricate fabric patterns.
|
47 |
+
|
48 |
+
### Recommendations
|
49 |
+
|
50 |
+
Users should validate the model's performance on their specific dataset and consider augmenting the training data with diverse examples to improve generalization.
|
51 |
+
|
52 |
+
## How to Get Started with the Model
|
53 |
+
|
54 |
+
You can use the provided code snippets to initialize and utilize the YOLOv8 defect segmentation model. Ensure that you have the necessary dependencies installed and refer to the training data section for instructions on preparing your dataset.
|
55 |
+
|
56 |
+
## Training Details
|
57 |
+
|
58 |
+
### Training Data
|
59 |
+
|
60 |
+
The model was trained on a dataset comprising images of various fabric types with annotated defect regions. The dataset includes examples of tears, holes, stains, and other common fabric defects.
|
61 |
+
|
62 |
+
### Training Procedure
|
63 |
+
|
64 |
+
The training utilized a combination of data augmentation techniques such as random rotations, flips, and scaling to enhance model robustness. The YOLOv8 architecture was trained using a combination of labeled and synthetically generated defect images.
|
65 |
+
|
66 |
+
#### Training Hyperparameters
|
67 |
+
|
68 |
+
- **Training regime:** YOLOv8 architecture with stochastic gradient descent (SGD) optimizer
|
69 |
+
- **Learning rate:** 0.005
|
70 |
+
- **Batch size:** 16
|
71 |
+
- **Epochs:** 300
|
72 |
+
|
73 |
+
## Evaluation
|
74 |
+
|
75 |
+
### Testing Data, Factors & Metrics
|
76 |
+
|
77 |
+
#### Testing Data
|
78 |
+
|
79 |
+
The model was evaluated on a separate test set comprising fabric images with ground truth defect annotations.
|
80 |
+
|
81 |
+
#### Metrics
|
82 |
+
|
83 |
+
Evaluation metrics include precision, recall, and intersection over union (IoU) for defect segmentation accuracy.
|
84 |
+
|
85 |
+
### Results
|
86 |
+
![Result](https://huggingface.co/thejagstudio/TrolexFabricDay2Model/resolve/main/results.png)
|
87 |
+
|
88 |
+
## Environmental Impact
|
89 |
+
|
90 |
+
Carbon emissions associated with training and inference can be estimated using the Machine Learning Impact calculator. Specify the hardware type, hours used, cloud provider, compute region, and carbon emitted accordingly.
|
91 |
+
|
92 |
+
## Technical Specifications
|
93 |
+
|
94 |
+
### Model Architecture and Objective
|
95 |
+
|
96 |
+
The model architecture is based on the YOLO (You Only Look Once) framework, which enables efficient real-time object detection and segmentation. The objective is to accurately localize and segment defects on fabric surfaces.
|
97 |
+
|
98 |
+
### Compute Infrastructure
|
99 |
+
|
100 |
+
#### Hardware
|
101 |
+
|
102 |
+
- **GPU:** Nvidia RTX 3050
|
103 |
+
|
104 |
+
#### Software
|
105 |
+
|
106 |
+
- **Framework:** PyTorch, Cuda
|
107 |
+
- **Dependencies:** Python
|