{"id":8472,"date":"2025-08-24T18:11:25","date_gmt":"2025-08-24T09:11:25","guid":{"rendered":"https:\/\/www.nkozawa.com\/blog\/?p=8472"},"modified":"2025-08-24T18:14:44","modified_gmt":"2025-08-24T09:14:44","slug":"hailomz-optimize%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%8c%e5%87%ba%e3%81%9f","status":"publish","type":"post","link":"http:\/\/www.nkozawa.com\/blog\/archives\/8472","title":{"rendered":"hailomz optimize\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f"},"content":{"rendered":"<p>Raspberry Pi AI Kit\u5411\u3051\u306e\u30e2\u30c7\u30eb\u751f\u6210\u304c\u7a81\u7136\u51fa\u6765\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u30e2\u30c7\u30eb\u751f\u6210\u3068\u74b0\u5883\u8a2d\u5b9a\u306b\u95a2\u3057\u3066\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/>\n&#8211; <a href=\"https:\/\/www.nkozawa.com\/blog\/archives\/8108\" rel=\"bookmark\" title=\"Permanent Link to Raspberry Pi AI Kit\u7528\u306b\u753b\u50cf\u8a8d\u8b58\u30e2\u30c7\u30eb\u3092\u4f5c\u308b\">Raspberry Pi AI Kit\u7528\u306b\u753b\u50cf\u8a8d\u8b58\u30e2\u30c7\u30eb\u3092\u4f5c\u308b<\/a><br \/>\n&#8211; <a href=\"https:\/\/www.nkozawa.com\/blog\/archives\/8418\" rel=\"bookmark\" title=\"Permanent Link to Hailo AI\u30e2\u30c7\u30eb\u5909\u63db\u74b0\u5883\u306e\u69cb\u7bc9\uff1aDocker\u30a4\u30e1\u30fc\u30b8\u3092\u6d3b\u7528\u3057\u305f\u5c0e\u5165\">Hailo AI\u30e2\u30c7\u30eb\u5909\u63db\u74b0\u5883\u306e\u69cb\u7bc9\uff1aDocker\u30a4\u30e1\u30fc\u30b8\u3092\u6d3b\u7528\u3057\u305f\u5c0e\u5165<\/a><\/p>\n<p>\u3053\u306e\u624b\u9806\u306e\u4e2d\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<pre>hailomz optimize --hw-arch hailo8l --har .\/yolov10s.har yolov10s<\/pre>\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<blockquote><p>hailo_model_optimization.acceleras.utils.acceleras_exceptions.NegativeSlopeExponentNonFixable: Quantization failed in layer yolov10s\/conv48 due to unsupported required slope. Desired shift is 9.0, but op has only 8 data bits. This error raises when the data or weight range are not balanced. Mostly happens when using random calibration-set\/weights, the calibration-set is not normalized properly or batch-normalization was not used during training.<\/p><\/blockquote>\n<p>\u30c6\u30b9\u30c8\u7684\u306bepoch\u3092\u5c0f\u3055\u304f\u3057\u3066\u4f5c\u6210\u3057\u305f\u30e2\u30c7\u30eb\u3060\u3068\u30a8\u30e9\u30fc\u3057\u306a\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u4ee5\u524d\u4f5c\u3063\u305f\u30e2\u30c7\u30eb\u3092\u751f\u6210\u3057\u76f4\u3057\u305f\u3089\u3001\u540c\u3058\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u308a\u3057\u3066\u8a66\u884c\u932f\u8aa4\u3060\u3051\u3067\u306f\u4eca\u3072\u3068\u3064\u767a\u751f\u6761\u4ef6\u304c\u7d5e\u308a\u8fbc\u3081\u307e\u305b\u3093\u3002<\/p>\n<p>\u307b\u307c\u610f\u5473\u4e0d\u660e\u3067\u3059\u304c\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u691c\u7d22\u3059\u308b\u3068\u3044\u304f\u3064\u304b\u306eQA\u304c\u30d2\u30c3\u30c8\u3057\u307e\u3057\u305f\u3002\u610f\u5473\u304c\u5206\u304b\u3089\u306a\u3044\u306a\u308a\u306b\u306a\u3093\u3068\u306a\u304f\u4f7f\u3048\u305d\u3046\u306a\u60c5\u5831\u3092HAILO Community\u306e<a href=\"https:\/\/community.hailo.ai\/t\/problem-with-model-optimization\/1648\/31\">Problem With Model Optimization<\/a>\u3068\u3044\u3046\u30b9\u30ec\u30c3\u30c9\u306b\u767a\u898b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3092\u53c2\u8003\u306b \/local\/workspace\/hailo_model_zoo\/hailo_model_zoo\/cfg\/alls\/generic\/yolov10s.alls \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u4ee5\u4e0b\u306e\u4e00\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>quantization_param([conv48, conv59, conv69], force_range_out=[0.0, 1.0])\r\n<\/pre>\n<p>conv48\u306f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3042\u3063\u305f\u3082\u306e\u3067\u3059\u3002conv59, conv69\u306fyolov10s.alls\u306b\u5143\u3005\u542b\u307e\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u76f8\u5909\u308f\u3089\u305a\u3001\u4f55\u3092\u76f4\u3057\u305f\u306e\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u3067optimize\u304c\u6210\u529f\u3057\u7d9a\u3044\u3066compile\u3092\u884c\u3044\u5b9f\u884c\u53ef\u80fd\u306ahef\u30e2\u30c7\u30eb\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi AI Kit\u5411\u3051\u306e\u30e2\u30c7\u30eb\u751f\u6210\u304c\u7a81\u7136\u51fa\u6765\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u30e2\u30c7\u30eb\u751f\u6210\u3068\u74b0\u5883\u8a2d\u5b9a\u306b\u95a2\u3057\u3066\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 &#8211; Raspberry Pi AI Kit\u7528\u306b\u753b\u50cf\u8a8d\u8b58\u30e2\u30c7\u30eb\u3092\u4f5c\u308b &#038;# [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[53],"tags":[],"class_list":["post-8472","post","type-post","status-publish","format-standard","hentry","category-image-recognition"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/8472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/comments?post=8472"}],"version-history":[{"count":8,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/8472\/revisions"}],"predecessor-version":[{"id":8480,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/posts\/8472\/revisions\/8480"}],"wp:attachment":[{"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/media?parent=8472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/categories?post=8472"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nkozawa.com\/blog\/wp-json\/wp\/v2\/tags?post=8472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}