Commit
·
10b4ddb
1
Parent(s):
2ae1ba0
Initial commit or update model files
Browse files- README.md +7 -1
- Yolov8n train.pt +3 -24
README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
base_model:
|
| 6 |
- Ultralytics/YOLOv8
|
| 7 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<<<<<<< HEAD
|
| 2 |
---
|
| 3 |
license: apache-2.0
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
base_model:
|
| 7 |
- Ultralytics/YOLOv8
|
| 8 |
+
---
|
| 9 |
+
=======
|
| 10 |
+
# Solar Panel Fault Detection
|
| 11 |
+
|
| 12 |
+
Model exported from Roboflow and pushed to Hugging Face.
|
| 13 |
+
>>>>>>> ccd8f04 (Initial commit with YOLOv5 Roboflow model)
|
Yolov8n train.pt
CHANGED
|
@@ -1,24 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
from inference import InferencePipeline
|
| 5 |
-
import cv2
|
| 6 |
-
|
| 7 |
-
def my_sink(result, video_frame):
|
| 8 |
-
if result.get("output_image"): # Display an image from the workflow response
|
| 9 |
-
cv2.imshow("Workflow Image", result["output_image"].numpy_image)
|
| 10 |
-
cv2.waitKey(1)
|
| 11 |
-
print(result) # do something with the predictions of each frame
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
# initialize a pipeline object
|
| 15 |
-
pipeline = InferencePipeline.init_with_workflow(
|
| 16 |
-
api_key="dxkgGGHSZ3DI8XzVn29U",
|
| 17 |
-
workspace_name="naveen-kumar-hnmil",
|
| 18 |
-
workflow_id="detect-count-and-visualize-5",
|
| 19 |
-
video_reference=0, # Path to video, device id (int, usually 0 for built in webcams), or RTSP stream url
|
| 20 |
-
max_fps=30,
|
| 21 |
-
on_prediction=my_sink
|
| 22 |
-
)
|
| 23 |
-
pipeline.start() #start the pipeline
|
| 24 |
-
pipeline.join() #wait for the pipeline thread to finish
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bfd0b7b97e7a538e3ef6e986e06db2d22c6ab4a7f3d083aec17b40d6d6fa96f
|
| 3 |
+
size 844
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|