- 输入的图片数据应该是要进行预处理的
Created by: phojl
- 输入的图片数据应该是要进行预处理的
input_tensor1.set_int32_data(size_data)
Originally posted by @zhupengyang in https://github.com/PaddlePaddle/Paddle-Lite/issues/4150#issuecomment-675876985
修改后 图片数据超范围问题 已经解决。但 输出结果shape 为 [100,6] paddlex 输出结果为 类型 03,个数为1个 但paddle lite 中 输出结果为 100个 [1.0, 0.9866962432861328, 183.126708984375, 0.0, 189.959716796875, 111.8604736328125, 1.0, 0.9835320711135864, 25.806135177612305, 92.96170043945312, 30.389760971069336, 221.3701171875, 1.0, 0.9611716270446777, 27.908554077148438, 96.76640319824219, 31.541526794433594, 171.68568420410156, 1.0, 0.9573654532432556, 111.27281188964844, 112.41384887695312, 118.33348083496094, 184.18856811523438, 1.0, 0.9397246241569519, 164.1780242919922, 375.5874328613281, 174.8517303466797, 462.1634216308594, 1.0, 0.9381904006004333, 55.662864685058594, 0.0, 63.95124816894531, 44.78529357910156, 1.0, 0.9351043105125427, 49.4876823425293, 41.31739044189453, 53.919124603271484, 171.00802612304688, 1.0, 0.9278059005737305, 35.046390533447266, 172.90618896484375, 41.32321548461914, 235.3267822265625, 1.0, 0.9146738052368164, 561.1953735351562, 504.85516357421875, 568.7966918945312, 561.9840698242188, 1.0, 0.913411557674408, 88.15316772460938, 117.09503936767578, 94.53935241699219, 194.71853637695312, 1.0, 0.901103138923645, 106.42125701904297, 0.0, 112.4903335571289, 42.63532638549805, 1.0, 0.8622952699661255, 557.2683715820312, 85.69242858886719, 570.5951538085938, 130.41455078125, 1.0, 0.8462823033332825, 65.9843978881836, 105.67707824707031, 71.1178207397461, 210.8611602783203, 1.0, 0.8301869034767151, 289.4630126953125, 88.69686126708984, 295.280517578125, 162.79708862304688, 1.0, 0.8284972906112671, 115.0273208618164, 155.9412841796875, 120.08577728271484, 204.10150146484375, 1.0, 0.8050337433815002, 49.27265548706055, 171.8485870361328, 58.291507720947266, 238.76527404785156, 1.0, 0.8046504855155945, 280.9225769042969, 368.9879455566406, 286.8650817871094, 421.6510314941406, 1.0, 0.8040377497673035, 34.38530731201172, 410.23541259765625, 42.70323944091797, 497.41351318359375, 1.0, 0.8033814430236816, 271.6949462890625, 34.70256042480469, 278.49285888671875, 87.04924011230469, 1.0, 0.799770712852478, 41.606170654296875, 170.62579345703125, 48.722991943359375, 237.97671508789062, 1.0, 0.7993653416633606, 52.53014373779297, 179.9248046875, 66.87898254394531, 232.31723022460938, 1.0, 0.7784005403518677, 165.5371551513672, 441.98089599609375, 177.99562072753906, 493.44744873046875, 1.0, 0.7770155668258667, 584.5061645507812, 95.88005828857422, 592.7810668945312, 170.56280517578125, 1.0, 0.7736622095108032, 28.523181915283203, 123.59424591064453, 32.62902069091797, 198.77862548828125, 1.0, 0.7613663077354431, 488.21038818359375, 219.5673065185547, 496.57958984375, 270.9399108886719, 1.0, 0.759276807308197, 31.879253387451172, 409.9631042480469, 39.00831985473633, 511.7300720214844, 1.0, 0.7540351152420044, 282.5727233886719, 92.51922607421875, 286.2778625488281, 160.70867919921875, 1.0, 0.753555417060852, 178.26478576660156, 133.2178497314453, 183.34739685058594, 177.5939483642578, 1.0, 0.7456430792808533, 55.956512451171875, 502.9020080566406, 66.42816162109375, 543.3643188476562, 1.0, 0.7414724826812744, 127.57122802734375, 38.370277404785156, 133.729248046875, 135.75982666015625, 1.0, 0.7370222210884094, 413.71209716796875, 38.543724060058594, 425.9017333984375, 82.86273193359375, 1.0, 0.7163446545600891, 437.6180114746094, 0.0, 451.0869445800781, 27.992069244384766, 1.0, 0.7107418775558472, 113.6559066772461, 0.0, 119.22957611083984, 43.01646423339844, 1.0, 0.7043747901916504, 78.33491516113281, 16.88627052307129, 89.26675415039062, 56.07427215576172, 1.0, 0.7037053108215332, 6.470487594604492, 487.05230712890625, 19.383258819580078, 543.9630737304688, 1.0, 0.6951298117637634, 74.71868896484375, 147.40560913085938, 81.50289916992188, 209.74258422851562, 1.0, 0.693026065826416, 82.27554321289062, 0.0, 87.95321655273438, 35.11540985107422, 1.0, 0.6681373715400696, 251.4349365234375, 18.481700897216797, 256.7038269042969, 132.46580505371094, 1.0, 0.6643683314323425, 143.77850341796875, 395.80517578125, 155.52450561523438, 442.02923583984375, 1.0, 0.6428792476654053, 565.8359375, 518.4727172851562, 575.0111083984375, 562.3147583007812, 1.0, 0.6428350806236267, 49.89403533935547, 141.1658172607422, 56.704017639160156, 215.62977600097656, 1.0, 0.6390252709388733, 282.1555480957031, 119.58666229248047, 288.4416198730469, 142.79833984375, 1.0, 0.6232835650444031, 575.1931762695312, 472.08245849609375, 584.1630249023438, 513.8092041015625, 1.0, 0.6209279298782349, 80.65157318115234, 144.390869140625, 87.86823272705078, 214.77081298828125, 1.0, 0.6159602999687195, 559.6395263671875, 562.373291015625, 569.73974609375, 598.2388916015625, 1.0, 0.6089122295379639, 72.55477142333984, 87.34358215332031, 79.44249725341797, 228.4643096923828, 1.0, 0.5997725129127502, 248.7639923095703, 357.6031188964844, 256.98065185546875, 403.5235290527344, 1.0, 0.5772713422775269, 21.666723251342773, 99.97885131835938, 25.727731704711914, 169.64071655273438, 1.0, 0.5765988230705261, 481.34930419921875, 169.938720703125, 496.31787109375, 221.7216796875, 1.0, 0.5717798471450806, 113.08211517333984, 3.2432632446289062, 119.80733489990234, 85.87319946289062, 1.0, 0.5581070780754089, 17.695459365844727, 86.93144989013672, 24.226491928100586, 147.99468994140625, 1.0, 0.5564900636672974, 145.92173767089844, 165.87429809570312, 152.43797302246094, 197.31845092773438, 1.0, 0.5484362244606018, 327.50555419921875, 112.08172607421875, 340.11004638671875, 163.95431518554688, 1.0, 0.5409528017044067, 67.11717987060547, 410.70013427734375, 79.32788848876953, 477.46270751953125, 1.0, 0.5374478697776794, 566.1525268554688, 560.2077026367188, 577.4547729492188, 602.8735961914062, 1.0, 0.5325362682342529, 13.112947463989258, 491.3650817871094, 27.886804580688477, 529.8998413085938, 1.0, 0.5276086926460266, 24.507946014404297, 455.68280029296875, 33.0152587890625, 510.56060791015625, 1.0, 0.5265157222747803, 60.12197494506836, 110.68671417236328, 64.27191162109375, 204.13192749023438, 1.0, 0.5213179588317871, 82.19959259033203, 78.0722427368164, 88.73328399658203, 223.81185913085938, 1.0, 0.5170667171478271, 288.2823486328125, 115.54328155517578, 294.30938720703125, 147.85711669921875, 1.0, 0.5112531185150146, 165.87106323242188, 312.70513916015625, 172.89456176757812, 517.4754028320312, 1.0, 0.4975961148738861, 183.1227569580078, 76.68681335449219, 187.11192321777344, 145.75071716308594, 1.0, 0.49055618047714233, 335.5318298339844, 15.68511962890625, 343.8955383300781, 87.1016845703125, 1.0, 0.4857688248157501, 93.90125274658203, 8.97891616821289, 103.4114761352539, 96.69342041015625, 1.0, 0.4797539710998535, 174.51434326171875, 96.13938903808594, 180.78729248046875, 202.9869842529297, 1.0, 0.47580936551094055, 477.59564208984375, 0.0, 490.43304443359375, 38.918094635009766, 1.0, 0.4747506380081177, 271.7349853515625, 135.4146270751953, 279.242919921875, 171.3744354248047, 1.0, 0.4544435739517212, 33.59618377685547, 106.01882934570312, 38.60259246826172, 219.1907958984375, 1.0, 0.4462668299674988, 461.5070495605469, 16.940053939819336, 472.8828430175781, 70.94710540771484, 1.0, 0.44077637791633606, 586.853271484375, 57.64978790283203, 593.175537109375, 94.5276870727539, 1.0, 0.4381992220878601, 278.4793701171875, 551.1808471679688, 290.2625732421875, 592.3901977539062, 1.0, 0.43713897466659546, 312.177490234375, 4.07382869720459, 322.03546142578125, 22.050025939941406, 1.0, 0.434605211019516, 536.3939819335938, 0.0, 546.1277465820312, 31.615137100219727, 1.0, 0.4317374527454376, 136.1699676513672, 149.60733032226562, 145.02098083496094, 212.68154907226562, 1.0, 0.4316387176513672, 274.4206237792969, 98.0239486694336, 280.0135192871094, 152.6322479248047, 1.0, 0.4282587468624115, 285.21697998046875, 317.0032043457031, 297.21173095703125, 363.5157165527344, 1.0, 0.4232584238052368, 180.57350158691406, 0.0, 186.25389099121094, 123.40914154052734, 1.0, 0.4198175370693207, 329.3456115722656, 63.81919479370117, 333.8728332519531, 139.06570434570312, 1.0, 0.41065388917922974, 318.1886291503906, 126.55258178710938, 330.1751403808594, 187.89865112304688, 1.0, 0.39896297454833984, 188.8623809814453, 91.16363525390625, 192.0610809326172, 142.19798278808594, 1.0, 0.38557523488998413, 396.9878845214844, 550.9764404296875, 410.5271301269531, 591.282958984375, 1.0, 0.3812752664089203, 28.34356117248535, 169.4319305419922, 34.344364166259766, 240.0561981201172, 1.0, 0.36401593685150146, 296.1643371582031, 64.50424194335938, 302.4332580566406, 184.4824981689453, 1.0, 0.3507322669029236, 140.3304901123047, 0.0, 144.87879943847656, 43.745201110839844, 1.0, 0.3438381254673004, 74.55799102783203, 0.0, 82.24102020263672, 29.197385787963867, 1.0, 0.3413398265838623, 254.0531463623047, 351.4186096191406, 263.67425537109375, 412.3982849121094, 1.0, 0.3268994092941284, 35.58934020996094, 78.99008178710938, 39.58064270019531, 190.669921875, 1.0, 0.3259963095188141, 170.47879028320312, 71.90494537353516, 176.27169799804688, 224.91342163085938, 3.0, 0.9823729991912842, 341.957275390625, 14.029025077819824, 352.7701416015625, 26.35886001586914, 3.0, 0.9122562408447266, 302.63232421875, 13.614928245544434, 397.47314453125, 28.785785675048828, 3.0, 0.9049533605575562, 82.13500213623047, 58.779964447021484, 86.10883331298828, 61.33314895629883, 3.0, 0.7824093103408813, 18.119510650634766, 5.510655879974365, 23.396312713623047, 16.78408432006836, 3.0, 0.5982343554496765, 309.6319885253906, 30.533706665039062, 318.8442077636719, 43.30095672607422, 3.0, 0.5633963942527771, 187.66983032226562, 9.237489700317383, 193.74502563476562, 13.775629043579102, 3.0, 0.5076276659965515, 182.63714599609375, 181.11573791503906, 188.80078125, 185.38710021972656, 3.0, 0.4840286672115326, 314.31195068359375, 8.60147476196289, 319.042236328125, 17.14719009399414, 3.0, 0.4451737403869629, 157.1697998046875, 41.602359771728516, 175.53707885742188, 45.60139083862305, 3.0, 0.4244006872177124, 283.430419921875, 123.63998413085938, 290.74700927734375, 139.53182983398438, 3.0, 0.3621780276298523, 33.138511657714844, 352.9684143066406, 38.518394470214844, 362.2453308105469, 3.0, 0.33128824830055237, 18.881208419799805, 107.58385467529297, 24.18621253967285, 127.61483001708984]
这个如何处理?