faster-rcnn-pytorch
faster-rcnn-pytorch copied to clipboard
執行出現 Legacy autograd function with non-static forward method is deprecated.
您好,我在執行train.py的時候出現這個訊息 RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method.
檢查了一下 好像在trainer.py的 roi_cls_loc, roi_score = self.faster_rcnn.head( features, sample_roi, sample_roi_index) 就停止了。 請問除了降torch版本以外,有其他方法嗎? 謝謝
Emmm…我的做法是降低版本,你可以试试利用conda重新创建一个环境装1.2.0
那请问在预测时候出现这个问题也是要降低torch版本吗