i am a college student from taiwan
i follow the steps finally run python test.py
after running some minutes
i get this result
Loading checkpoint from pretrained/cnn5-avgp-fc1.pt
testing: 100%|████████████████████████████████████████████████| 2495/2495 [05:34<00:00, 7.46it/s]
Traceback (most recent call last):
File "test.py", line 34, in
main()
File "test.py", line 30, in main
tester.test()
File "/home/jfkd147258/snn_angular_velocity/utils/testing.py", line 45, in test
self.data_collector.printErrors()
File "/home/jfkd147258/snn_angular_velocity/utils/testing.py", line 80, in printErrors
print('RMSE: {} deg/s'.format(rmse(pred, gt, deg=True)))
File "/home/jfkd147258/snn_angular_velocity/model/metric.py", line 21, in rmse
rmse = np.mean(np.sqrt(np.sum(np.square(pred - gt), axis=1).flatten()))
ValueError: operands could not be broadcast together with shapes (7485,97) (2495,3,97)
can you help me where i was wrong...thank you
Mind if we contact us by email?
thank you very much
I'm a rookie..so need yout help
i am a college student from taiwan
i follow the steps finally run python test.py
after running some minutes
i get this result
Loading checkpoint from pretrained/cnn5-avgp-fc1.pt
testing: 100%|████████████████████████████████████████████████| 2495/2495 [05:34<00:00, 7.46it/s]
Traceback (most recent call last):
File "test.py", line 34, in
main()
File "test.py", line 30, in main
tester.test()
File "/home/jfkd147258/snn_angular_velocity/utils/testing.py", line 45, in test
self.data_collector.printErrors()
File "/home/jfkd147258/snn_angular_velocity/utils/testing.py", line 80, in printErrors
print('RMSE: {} deg/s'.format(rmse(pred, gt, deg=True)))
File "/home/jfkd147258/snn_angular_velocity/model/metric.py", line 21, in rmse
rmse = np.mean(np.sqrt(np.sum(np.square(pred - gt), axis=1).flatten()))
ValueError: operands could not be broadcast together with shapes (7485,97) (2495,3,97)
can you help me where i was wrong...thank you
Mind if we contact us by email?
thank you very much
I'm a rookie..so need yout help