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

Retraining model VGG_ILSVRC_16_layers.caffemodel throws errors #5738

Closed
MohanaRC opened this issue Jul 5, 2017 · 2 comments
Closed

Retraining model VGG_ILSVRC_16_layers.caffemodel throws errors #5738

MohanaRC opened this issue Jul 5, 2017 · 2 comments

Comments

@MohanaRC
Copy link

MohanaRC commented Jul 5, 2017

I have been trying to retrain the VGG_ILSVRC_16_layers.caffemodel and I keep getting the following error,

I0705 15:55:07.324955 11522 caffe.cpp:155] Finetuning from home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 140543368136512:
#000: ../../../src/H5F.c line 439 in H5Fis_hdf5(): unable open file
major: File accessibilty
minor: Not an HDF5 file
#1: ../../../src/H5Fint.c line 554 in H5F_is_hdf5(): unable to open file
major: Low-level I/O
minor: Unable to initialize object
#2: ../../../src/H5FD.c line 993 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#3: ../../../src/H5FDsec2.c line 339 in H5FD_sec2_open(): unable to open file: name = 'home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0
major: File accessibilty
minor: Unable to open file
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 140543368136512:
#000: ../../../src/H5F.c line 604 in H5Fopen(): unable to open file
major: File accessibilty
minor: Unable to open file
#1: ../../../src/H5Fint.c line 992 in H5F_open(): unable to open file: time = Wed Jul 5 15:55:07 2017
, name = 'home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel', tent_flags = 0
major: File accessibilty
minor: Unable to open file
#2: ../../../src/H5FD.c line 993 in H5FD_open(): open failed
major: Virtual File Layer
minor: Unable to initialize object
#3: ../../../src/H5FDsec2.c line 339 in H5FD_sec2_open(): unable to open file: name = 'home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0
major: File accessibilty
minor: Unable to open file
F0705 15:55:07.381656 11522 net.cpp:791] Check failed: file_hid >= 0 (-1 vs. 0) Couldn't open home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel
*** Check failure stack trace: ***
@ 0x7fd2ccc7195d google::LogMessage::Fail()
@ 0x7fd2ccc736e0 google::LogMessage::SendToLog()
@ 0x7fd2ccc71543 google::LogMessage::Flush()
@ 0x7fd2ccc740ae google::LogMessageFatal::~LogMessageFatal()
@ 0x7fd2cd20ee78 caffe::Net<>::CopyTrainedLayersFromHDF5()
@ 0x7fd2cd213154 caffe::Net<>::CopyTrainedLayersFrom()
@ 0x40b124 CopyLayers()
@ 0x40c65a train()
@ 0x4081e0 main
@ 0x7fd2cc006830 (unknown)
@ 0x408b39 _start
Aborted (core dumped)

I am not sure what is causing the error.

I am using Ubuntu 16.04 and Python 2.7
I ran the following statement for the training process
/home/xxx/caffe/build/tools/caffe train -solver /home/xxx/dense_crowd_counting/models/dcc_crowdnet/solver.prototxt -weights home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel

@Noiredd
Copy link
Member

Noiredd commented Apr 9, 2018

From the look of those error messages, I would guess that either the file doesn't exist, or you don't have access privileges to it, or it is corrupted. Or that your path is malformed:
/home/xxx/caffe/build/tools/caffe train -solver /home/xxx/dense_crowd_counting/models/dcc_crowdnet/solver.prototxt -weights home/xxx/dense_crowd_counting/VGG_ILSVRC_16_layers.caffemodel
Looks like you're missing a backslash / in the path to your caffemodel.

Please post usage, installation, or modeling questions, or other requests for help to the caffe-users list instead of Issues. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe. Please read the guidelines for contributing before submitting an issue or a pull request.

@Noiredd Noiredd closed this as completed Apr 9, 2018
@WZNoone
Copy link

WZNoone commented Oct 26, 2021

hi,can you share the VGG_ILSVRC_16_layers.caffemodel?

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