faster-rcnn-pytorch icon indicating copy to clipboard operation
faster-rcnn-pytorch copied to clipboard

執行出現 Legacy autograd function with non-static forward method is deprecated.

Open dt54123 opened this issue 4 years ago • 2 comments

您好,我在執行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版本以外,有其他方法嗎? 謝謝

dt54123 avatar Sep 29 '20 15:09 dt54123

Emmm…我的做法是降低版本,你可以试试利用conda重新创建一个环境装1.2.0

bubbliiiing avatar Oct 09 '20 01:10 bubbliiiing

那请问在预测时候出现这个问题也是要降低torch版本吗

zs-lavender avatar Mar 20 '24 12:03 zs-lavender