当前位置:   article > 正文

OTB100报错: resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function ‘resize‘_ros /modules/imgproc/src/resize.cpp:4045: error: (

ros /modules/imgproc/src/resize.cpp:4045: error: (-215:assertion failed) !ss

SiamMask - otb100


  0%|          | 0/99 [00:00<?, ?it/s]/home/yuuzh/.conda/envs/pytorch-env/lib/python3.7/site-packages/torch/nn/functional.py:2796: UserWarning: nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.
  warnings.warn("nn.functional.upsample is deprecated. Use nn.functional.interpolate instead.")
 11%|█         | 11/99 [24:25<3:15:27, 133.27s/it]
Traceback (most recent call last):
  File "/home/yuuzh/Document/project/PlasticNet/UpdateNet/plasticmask-test.py", line 347, in <module>
    main()
  File "/home/yuuzh/Document/project/PlasticNet/UpdateNet/plasticmask-test.py", line 276, in main
    state = tracker.update(params, img, gt_bbox, mask_enable=True, refine_enable=True)  # track
  File "/home/yuuzh/Document/project/PlasticNet/UpdateNet/siammask_sharp/tracker.py", line 484, in update
    gt_crop = Variable(get_subwindow_tracking(im, gt_pos, p.exemplar_size, Round(gt_s_z), avg_chans))
  File "/home/yuuzh/Document/project/PlasticNet/UpdateNet/siammask_sharp/utils_t.py", line 92, in get_subwindow_tracking
    im_patch = cv2.resize(im_patch_original, (model_sz, model_sz))  # zzp: use cv to get a better speed
cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'resize'



  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

在这里插入图片描述

原因:

OTB100.json 文件 Board 687 最后一行 为0,0,0,0 , 改了!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/375439
推荐阅读
相关标签
  

闽ICP备14008679号