日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

voc_eval.py:41: RuntimeWarning: invalid value encountered in greater_equal if np.sum(rec = t) ==

發(fā)布時間:2024/9/21 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 voc_eval.py:41: RuntimeWarning: invalid value encountered in greater_equal if np.sum(rec = t) == 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

訓練faster-rcnn報錯

訓練結(jié)束后測試時出現(xiàn)類似

File "/home/xxx/py-faster-rcnn/tools/../lib/datasets/voc_eval.py", line 126, in voc_evalR = [obj for obj in recs[imagename] if obj['name'] == classname] KeyError: '000002'

解決方法: 刪除data/VOCdekit2007下的annotations_cache文件夾


基于ResNet101訓練py-faster-rcnn遇到錯誤:

/faster-rcnn-py/tools/../lib/fast_rcnn/bbox_transform.py:50: RuntimeWarning: overflow encountered in exp pred_h = np.exp(dh) * heights[:, np.newaxis] faster-rcnn-py/tools/../lib/rpn/proposal_layer.py:176: RuntimeWarning: invalid value encountered in greater_equal keep = np.where((ws >= min_size) & (hs >= min_size))[0]

類似解決方法:減小lr from 0.001 to 0.0001

A possible solution could be to decrease the base learning rate in the solver.prototxt As it is recommended here http://caffe.berkeleyvision.org/tutorial/solver.html Just change the base_lr: 0.001 to 0.0001Note also that the above settings are merely guidelines, and they’re definitely not guaranteed to be optimal (or even work at all!) in every situation. If learning diverges (e.g., you start to see very large or NaN or inf loss values or outputs), try dropping the base_lr (e.g., base_lr: 0.001) and re-training, repeating this until you find a base_lr value that works. I did try to change the base_lr value and now the NAN value disappeared.

總結(jié)

以上是生活随笔為你收集整理的voc_eval.py:41: RuntimeWarning: invalid value encountered in greater_equal if np.sum(rec = t) ==的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。