Views
No views yet
battery_detector_v1-3ultralytics library in Python.1from ultralytics import YOLO
2
3# Load the trained model
4model = YOLO('Aun3223/e-waste-battery-anomaly-detection-yolov8n') # or specify local path if downloaded
5
6# Run inference on an image
7results = model('path/to/your/image.jpg')
8
9# Show results
10for r in results:
11 print(r.boxes) # Print bounding box detections
12 r.show() # Display the image with detectionsbest.pt: The best performing model weights.args.yaml: The full configuration and arguments used for training.results.csv: Detailed performance metrics per epoch.confusion_matrix.png: Visualization of the model's classification performance.results.png: Training plots showing loss, accuracy, etc.