Views
No views yet
inspection_engine_final3 (best performing run)| File | Description |
|---|---|
best.pt | Best PyTorch model weights |
best.onnx | ONNX export for cross-platform/production deployment |
1from ultralytics import YOLO
2from huggingface_hub import hf_hub_download
3
4model_path = hf_hub_download(repo_id='devanshty/Inspection-Engine', filename='best.pt')
5model = YOLO(model_path)
6results = model('pcb_image.jpg')
7results[0].show()1import onnxruntime as ort
2import numpy as np
3from huggingface_hub import hf_hub_download
4
5onnx_path = hf_hub_download(repo_id='devanshty/Inspection-Engine', filename='best.onnx')
6session = ort.InferenceSession(onnx_path)
7# Prepare input (1, 3, H, W) float32 normalized
8input_name = session.get_inputs()[0].name
9outputs = session.run(None, {input_name: np.zeros((1, 3, 640, 640), dtype=np.float32)})1from huggingface_hub import hf_hub_download
2model_path = hf_hub_download(repo_id='devanshty/Inspection-Engine', filename='best.pt')