Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch Size 1 Error #3

Open
jfkd147258 opened this issue Nov 25, 2020 · 5 comments
Open

Batch Size 1 Error #3

jfkd147258 opened this issue Nov 25, 2020 · 5 comments
Labels
wontfix This will not be worked on

Comments

@jfkd147258
Copy link

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

@magehrig
Copy link
Contributor

You changed the batch size to 1 in the test_config.yaml. I did not account for this case. So if you change it to 2 you should be fine.

@magehrig magehrig added the wontfix This will not be worked on label Nov 30, 2020
@jfkd147258
Copy link
Author

thank you !
I try it, change the batch size to 2 and other parameter same as yours, but still got this error.

the reason why i change batch size is : if i did not change it , cuda will not get enough memory..

do you mind telling me the Hardware for doing this project?

thank you very much!

@magehrig
Copy link
Contributor

magehrig commented Dec 2, 2020

I can only reproduce this error if the batch size is set to 1. can you show me the config file that you used where you get this error without setting batch size to 1?

I used an Nvidia RTX 2080 for this project

@magehrig magehrig changed the title hi!something just wrong Batch Size 1 Error Dec 2, 2020
@WYCAS
Copy link

WYCAS commented Dec 30, 2020

when i run python setup.py install it show "TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType" can you help me

@magehrig
Copy link
Contributor

magehrig commented Feb 5, 2021

@holygoodman if this is not related to this issue, please open a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants