Create readme.md
Browse files
readme.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```python
|
| 2 |
+
from ultralyticsplus import YOLO, postprocess_classify_output
|
| 3 |
+
|
| 4 |
+
# load model
|
| 5 |
+
model = YOLO('Revrse/icon-labelling')
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
# set image
|
| 9 |
+
image = 'test/155.png'
|
| 10 |
+
|
| 11 |
+
# perform inference
|
| 12 |
+
prediction = model(image)
|
| 13 |
+
|
| 14 |
+
# observe results
|
| 15 |
+
print(prediction[0].names[prediction[0].probs.top1])
|
| 16 |
+
```
|