SpA-Former-shadow-removal icon indicating copy to clipboard operation
SpA-Former-shadow-removal copied to clipboard

predict.py issue

Open SEONGMIN-96 opened this issue 1 year ago • 2 comments

Traceback (most recent call last):
  File "predict.py", line 84, in <module>
    predict(config, args)
  File "predict.py", line 58, in predict
    allim[0, 2, :] = heat_att
IndexError: index 2 is out of bounds for axis 1 with size 1

This error occurred and ignored code 'allim[0, 2, :] = heat_att' and executed successfully. Is there any problem with the performance of the model?

SEONGMIN-96 avatar Jul 26 '22 07:07 SEONGMIN-96

I upload the predict.py again, try it. It should be no problem.

zhangbaijin avatar Jul 26 '22 08:07 zhangbaijin

你的测试图片输入对吗,你的这个问题跟第一个issue差不多,可以参考 #2

zhangbaijin avatar Jul 26 '22 08:07 zhangbaijin