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

Changing batch_size causes error in snn_evaluate #49

Closed
rashmi-ar opened this issue Oct 7, 2022 · 6 comments
Closed

Changing batch_size causes error in snn_evaluate #49

rashmi-ar opened this issue Oct 7, 2022 · 6 comments

Comments

@rashmi-ar
Copy link

Hello author,

changing batch_size to default 1 for training and testing is causing error while transforming ann to snn (for yolov3-tiny-mp2conv-mp1none-lk2relu-up2tconv.cfg). The following error occurs in snn_evaluate,
File "ann_to_snn.py", line 183, in
snn_results, maps, firing_ratios = snn_evaluate(opt,
File "/PyTorch-Spiking-YOLOv3/spiking_utils/snn_evaluate.py", line 276, in snn_evaluate
output_snn1, output_snn2 = snn(data) # two branches
ValueError: too many values to unpack (expected 2)

Please let me know what may have gone wrong here.
Thanks in advance.

@hanbaobao950123
Copy link

maybe #4 can help you.

@sahenderson10
Copy link

Hi Rashmi, did you get this code to work? How did you grab the dataset?

@rashmi-ar
Copy link
Author

Hi @sahenderson10 ! You can check data/get_coco_dataset.sh file to download images and metadata or download the dataset from https://pjreddie.com/media/files/train2014.zip and https://pjreddie.com/media/files/val2014.zip

@sahenderson10
Copy link

I have downloaded val2014 and train2014 and put them in the data file. How do I create the coco.data file to run the code?

@rashmi-ar
Copy link
Author

Hi @sahenderson10 ! This may help - #50 (comment)

@rashmi-ar
Copy link
Author

Downgrading the python and pytorch version, python=3.7 and pytorch=1.3, solved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants