Instructions to use tng4480/kestrel-loop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use tng4480/kestrel-loop with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("tng4480/kestrel-loop", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Download perception/classes.json from tng4480/kestrel-loop: direct link, hf CLI and curl.
- Browser
- Download file 2.43 kB
-
https://huggingface.co/tng4480/kestrel-loop/resolve/main/perception/classes.json
- Command line
-
hf download hf://tng4480/kestrel-loop/perception/classes.json
-
curl -L -o classes.json https://huggingface.co/tng4480/kestrel-loop/resolve/main/perception/classes.json
2.43 kB
| { | |
| "names": [ | |
| "bolt_m16x50", | |
| "bolt_m24x70", | |
| "bolt_m30x100", | |
| "nut_m12", | |
| "nut_m16", | |
| "nut_m20", | |
| "nut_m24", | |
| "nut_m30", | |
| "nut_m36", | |
| "washer_m12", | |
| "washer_m16", | |
| "washer_m20", | |
| "washer_m33", | |
| "fixture" | |
| ], | |
| "id_to_name": { | |
| "0": "bolt_m16x50", | |
| "1": "bolt_m24x70", | |
| "2": "bolt_m30x100", | |
| "3": "nut_m12", | |
| "4": "nut_m16", | |
| "5": "nut_m20", | |
| "6": "nut_m24", | |
| "7": "nut_m30", | |
| "8": "nut_m36", | |
| "9": "washer_m12", | |
| "10": "washer_m16", | |
| "11": "washer_m20", | |
| "12": "washer_m33", | |
| "13": "fixture" | |
| }, | |
| "name_to_id": { | |
| "bolt_m16x50": 0, | |
| "bolt_m24x70": 1, | |
| "bolt_m30x100": 2, | |
| "nut_m12": 3, | |
| "nut_m16": 4, | |
| "nut_m20": 5, | |
| "nut_m24": 6, | |
| "nut_m30": 7, | |
| "nut_m36": 8, | |
| "washer_m12": 9, | |
| "washer_m16": 10, | |
| "washer_m20": 11, | |
| "washer_m33": 12, | |
| "fixture": 13 | |
| }, | |
| "kpt_shape": [ | |
| 6, | |
| 3 | |
| ], | |
| "flip_idx": [ | |
| 0, | |
| 1, | |
| 2, | |
| 3, | |
| 4, | |
| 5 | |
| ], | |
| "keypoints": { | |
| "bolt": [ | |
| "shank_axis_centre (-0.5*head_height, 0, 0)", | |
| "head_top_centre (+0.5*(length+head_height), 0, 0)", | |
| "tip_centre (-0.5*(length+head_height), 0, 0)", | |
| null, | |
| null, | |
| null | |
| ], | |
| "nut": [ | |
| "centre (0, 0, 0)", | |
| "local_x (+0.5*across_flats, 0, 0)", | |
| "local_y (0, +0.5*across_flats, 0)", | |
| null, | |
| null, | |
| null | |
| ], | |
| "washer": [ | |
| "centre (0, 0, 0)", | |
| "local_x (+0.5*outer_diameter, 0, 0)", | |
| "local_y (0, +0.5*outer_diameter, 0)", | |
| null, | |
| null, | |
| null | |
| ], | |
| "fixture": [ | |
| "bore_m16", | |
| "bore_m24", | |
| "bore_m30", | |
| "hex_m24", | |
| "hex_m30", | |
| "hex_m36" | |
| ] | |
| }, | |
| "fixture_seat_spec": { | |
| "bore_m16": { | |
| "xy_mm": [ | |
| 7.2, | |
| 3.5 | |
| ], | |
| "top_z_mm": 115.0 | |
| }, | |
| "bore_m24": { | |
| "xy_mm": [ | |
| 7.2, | |
| 86.0 | |
| ], | |
| "top_z_mm": 115.0 | |
| }, | |
| "bore_m30": { | |
| "xy_mm": [ | |
| 7.2, | |
| -82.5 | |
| ], | |
| "top_z_mm": 115.0 | |
| }, | |
| "hex_m24": { | |
| "xy_mm": [ | |
| 77.35, | |
| -82.5 | |
| ], | |
| "top_z_mm": 115.0 | |
| }, | |
| "hex_m30": { | |
| "xy_mm": [ | |
| 77.35, | |
| 77.5 | |
| ], | |
| "top_z_mm": 115.0 | |
| }, | |
| "hex_m36": { | |
| "xy_mm": [ | |
| 77.35, | |
| -5.0 | |
| ], | |
| "top_z_mm": 115.0 | |
| } | |
| }, | |
| "jpeg_quality": 90, | |
| "jpeg_subsampling": 0, | |
| "min_visible_pixels": 40, | |
| "depth_tol_m": 0.005 | |
| } |