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
File size: 2,434 Bytes
0a8139c eb4a01b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | {
"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
} |