wenwei202 / caffe

Caffe for Sparse and Low-rank Deep Neural Networks
Other
376 stars 134 forks source link

Error while converting caffemodel to HDF5 #33

Closed vc-30 closed 5 years ago

vc-30 commented 5 years ago

Issue summary

Hi @wenwei202 , I'm trying to apply low rank approximation to object detection model similar to SSD. But while converting the model to HDF5 using caffemodel_converter.py I'm getting below error: `I1114 15:37:20.404398 4379 net.cpp:916] Layer namestem1_stem1/relu_0_split HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 140026632021760:

000: ../../../src/H5G.c line 314 in H5Gcreate2(): unable to create group

major: Symbol table
minor: Unable to initialize object

001: ../../../src/H5Gint.c line 194 in H5G__create_named(): unable to create and link to group

major: Symbol table
minor: Unable to initialize object

002: ../../../src/H5L.c line 1638 in H5L_link_object(): unable to create new link to object

major: Links
minor: Unable to initialize object

003: ../../../src/H5L.c line 1882 in H5L_create_real(): can't insert link

major: Symbol table    minor: Unable to insert object

004: ../../../src/H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed

major: Symbol table
minor: Object not found

005: ../../../src/H5Gtraverse.c line 755 in H5G_traverse_real(): component not found

major: Symbol table
minor: Object not found

F1114 15:37:20.404465 4379 net.cpp:919] Check failed: layer_data_hid >= 0 (-1 vs. 0)`

The model I'm using has a Dense block as described in https://arxiv.org/abs/1608.06993, not sure if that could be the issue. I checked related issues online where people suggested the issue might be because of duplicate layer names. But I checked it was not the case with my model. If you have any suggestion please let me know.

Your system configuration

Operating system: Ubuntu 16.04.1 Compiler: CUDA version (if applicable): Cuda-8.0 CUDNN version (if applicable): Cudnn-5.0.5 BLAS: Atlas Python or MATLAB version (for pycaffe and matcaffe respectively):pycaffe

vc-30 commented 5 years ago

Starting fresh solved this problem. I think in trying different things I might have corrupted the source file