ailia-models icon indicating copy to clipboard operation
ailia-models copied to clipboard

implement crestero

Open yuki399 opened this issue 3 years ago • 3 comments

#796

yuki399 avatar Jun 21 '22 21:06 yuki399

ailia SDK 1.2.11では下記のエラー。

ailia.core.AiliaInvalidLayerException: code: -10 (Incorrect node parameter. [broken or unsupported AI model file])
+ error detail : Layer:onnx::ReduceSum_2526(Eltwise) Error:Unsupported size pair. [virtual shape] 

kyakuno avatar Jun 29 '22 07:06 kyakuno

ailia SDK 1.2.12 (alpha)でも同じエラー。

kyakuno avatar Jun 29 '22 07:06 kyakuno

ailia SDK 1.2.13で対応の方針。

kyakuno avatar Jul 18 '22 05:07 kyakuno

ailia SDK 1.2.13ではモデルは推論できていて、後処理がうまく動いていない。

  File "crestereo.py", line 187, in <module>
    main()
  File "crestereo.py", line 184, in main
    recognize_from_image(net)
  File "crestereo.py", line 113, in recognize_from_image
    disparity_map = depth_estimator(left_img, right_img)
  File "/Users/kyakuno/Desktop/repos/ailia-models/depth_estimation/crestereo/crestereo_util.py", line 22, in __call__
    return self.update(left_img, right_img)
  File "/Users/kyakuno/Desktop/repos/ailia-models/depth_estimation/crestereo/crestereo_util.py", line 62, in update
    self.disparity_map = self.process_output(outputs)
  File "/Users/kyakuno/Desktop/repos/ailia-models/depth_estimation/crestereo/crestereo_util.py", line 99, in process_output
    return np.squeeze(output[:,0,:,:])
TypeError: list indices must be integers or slices, not tuple

kyakuno avatar Oct 13 '22 08:10 kyakuno

predictの後でonnx runtimeと同様に[0]としたら動いた。

kyakuno avatar Oct 13 '22 08:10 kyakuno