onnx2rknn (picodet_s_192_pedestrian_sim.onnx 量化时出现错误)

放弃幻想 准备战斗 / 2023-07-31 / 原文

E ValueError: Cannot reshape a tensor with 1843200 elements to shape [100,8] (800 elements) for 'Reshape_Reshape_8_32/Reshape_Reshape_8_32' (op: 'Reshape') with input shapes: [100,24,24,32], [2] and with input tensors computed as partial shapes: input[1] = [100,8].

 

 

解决:

改batchsize=1,(默认100)