D29 - D31:程式導讀、實作 中的 將處理好之影像送入模型運算(Forward Pass) 出現問題
2020/07/31 下午 03:05
電腦視覺深度學習討論版
盧靖樺
觀看數:5
回答數:2
收藏數:0
cvdl
cvdl-d29
回答列表
-
2020/07/31 下午 03:07盧靖樺贊同數:0不贊同數:0留言數:2
如上圖所示,我還沒有更動程式碼,但無法順利使用demo程式
下列 是報錯訊息
RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)
請求解答,感謝!
-
2020/08/06 下午 04:35Chi-Kang Su贊同數:0不贊同數:0留言數:0
我也有遇到同樣的問題,主要是 pytorch 的版本在 1.3.0之後調整了 autograd 的寫法。這個程式碼是舊的,只要把 pytorch 降版本到 1.2.0 就可以跑這個程式了