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

double free or corruption (!prev) (BUG?) #7

Open
HamzahNizami opened this issue Mar 5, 2019 · 2 comments
Open

double free or corruption (!prev) (BUG?) #7

HamzahNizami opened this issue Mar 5, 2019 · 2 comments

Comments

@HamzahNizami
Copy link

HamzahNizami commented Mar 5, 2019

I had finally got the model training but I have now begun getting the following two errors and I'm unsure as to why.

Snapshotting to binary proto file params/attentionMask-8-128_iter_50.caffemodel
I0304 23:27:38.113571 4767 sgd_solver.cpp:273] Snapshotting solver state to binary proto file params/attentionMask-8-128_iter_50.solverstate
F0304 23:27:40.473143 4767 syncedmem.hpp:31] Check failed: error == cudaSuccess (29 vs. 0) driver shutting down
*** Check failure stack trace: ***
./train.sh: line 26: 4767 Aborted (core dumped) python trainAttentionMask.py 0 attentionMask-8-128 --init_weights resnet-50-model.caffemodel --step $SIZE_EPOCH

double free or corruption (!prev)
./train.sh: line 26: 5032 Aborted (core dumped) python testAttentionMask.py 0 attentionMask-8-128 --init_weights attentionMask-8-128_iter_$STEP.caffemodel --dataset train2014

@HamzahNizami
Copy link
Author

After recloning the repository and following the steps again I attempted to train the model on 50 of the images from the training dataset. When using the training command separately (i.e. not the train.sh) I get the following:

cudaSuccess (29 vs. 0) driver shutting down
*** Check failure stack trace: ***
Aborted (core dumped)

However, when using the following command: ./train.sh --50

I get the following error:

double free or corruption (!prev)
./train.sh: line 26: 9337 Aborted (core dumped) python testAttentionMask.py 0 attentionMask-8-128 --init_weights attentionMask-8-128_iter_$STEP.caffemodel --dataset train2014
validation done
start evaluation

I then tried running the following test command by itself:
python testAttentionMask.py 0 attentionMask-8-128 --init_weights attentionmask-8-128final.caffemodel --dataset val2014 --end 50

and got the following error:

loading annotations into memory...
Done (t=3.57s)
creating index...
index created!
double free or corruption (!prev)
Aborted (core dumped)

I currently have no idea what is happening but when looking online it is suggested that its to do with memory allocation, which would have to do with the code itself?

I hope you can get back to me regarding this situation, thanks in advance.

@HamzahNizami HamzahNizami changed the title double free or corruption (!prev) double free or corruption (!prev) (BUG?) Mar 6, 2019
@chwilms
Copy link
Owner

chwilms commented Apr 8, 2019

Hi @HamzahNizami , I was out of office for a few weeks. I tried to reproduce your error, but was not successful.

Can you try to localize the error within the testAttentionMask.py script? Is it a problem of pycocotools or some caffe layer?

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

2 participants