nit.constant(self.weight,self.gamma)
Finished loading model!
Traceback (most recent call last):
File "C:\Users\fi42\Rony\AL-MDN\eval_voc.py", line 439, in
mean_ap = test_net(args.save_folder, net, args.cuda, dataset,
File "C:\Users\fi42\Rony\AL-MDN\eval_voc.py", line 385, in test_net
detections = net(x).data
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, kwargs)
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\nn\parallel\data_parallel.py", line 166, in forward
return self.module(*inputs[0], *kwargs[0])
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(input, kwargs)
File "C:\Users\fi42\Rony\AL-MDN\ssd_gmm.py", line 272, in forward
output = self.detect(
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\autograd\function.py", line 150, in call
raise RuntimeError(
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)
Can you let me know what exact version of pytorch, python , cuda, you used? I tried several but got this error?
nit.constant(self.weight,self.gamma) Finished loading model! Traceback (most recent call last): File "C:\Users\fi42\Rony\AL-MDN\eval_voc.py", line 439, in
mean_ap = test_net(args.save_folder, net, args.cuda, dataset,
File "C:\Users\fi42\Rony\AL-MDN\eval_voc.py", line 385, in test_net
detections = net(x).data
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(*input, kwargs)
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\nn\parallel\data_parallel.py", line 166, in forward
return self.module(*inputs[0], *kwargs[0])
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\nn\modules\module.py", line 1051, in _call_impl
return forward_call(input, kwargs)
File "C:\Users\fi42\Rony\AL-MDN\ssd_gmm.py", line 272, in forward
output = self.detect(
File "C:\Users\fi42\anaconda3\envs\ACT\lib\site-packages\torch\autograd\function.py", line 150, in call
raise RuntimeError(
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)
Can you let me know what exact version of pytorch, python , cuda, you used? I tried several but got this error?