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

Add support for older caffe model #19

Open
WurmD opened this issue Oct 26, 2020 · 3 comments
Open

Add support for older caffe model #19

WurmD opened this issue Oct 26, 2020 · 3 comments

Comments

@WurmD
Copy link

WurmD commented Oct 26, 2020

The original C3D model (used by the fantastic anomaly detection work of Waqas https://github.com/WaqasSultani/AnomalyDetectionCVPR2018) can be downloaded from here http://vlg.cs.dartmouth.edu/c3d/ (direct link: https://www.dropbox.com/s/vr8ckp0pxgbldhs/conv3d_deepnetA_sport1m_iter_1900000?dl=0 )

This caffe model, when python3 caffemodel2pytorch.py conv3d_deepnetA_sport1m_iter_1900000 -o conv3d_deepnetA_sport1m_iter_1900000.h5 errors out because net_param.layers contains blobs, but these blobs do not contain a data field, but many diff fields (one per weight)

I don't know why this is the case. I assume it is due to an older caffe version used

Please kindly add support for these kind of models as well

@vadimkantorov
Copy link
Owner

Sorry, I don't develop this library anymore :( I can answer questions about the codebase, but I'm not working on it anymore.

You'd have to modify it yourself (e.g. somehow ignore those blobs? or provide dummy values for data field if it makes sense). If you do, please be welcome to submit a PR.

@vadimkantorov
Copy link
Owner

Here is the repo with that modified Caffe: https://github.com/facebookarchive/C3D/tree/master/C3D-v1.1. The first step would be to find the corresponding caffe.proto and model's proto

@vadimkantorov
Copy link
Owner

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