Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fratealberto/21910f7af6b2e4599e07488eeb4f39a7 to your computer and use it in GitHub Desktop.
Save fratealberto/21910f7af6b2e4599e07488eeb4f39a7 to your computer and use it in GitHub Desktop.
Kaffe Conversion, #docker, #Caffe, #keras
Converting Caffe model to Keras model
Si può usare una macchina docker per Kaffe: https://hub.docker.com/r/bvlc/caffe/
1. Download caffe model cd model; sh get_caffe_model.sh
2. Dump caffe layers to numpy data
cd ..; docker run -v [absolute path to your keras_Realtime_Multi-Person_Pose_Estimation folder]:/workspace -it bvlc/caffe:cpu python dump_caffe_layers.py
Note that docker accepts only absolute paths so you have to set the full path to the folder containing this project.
3. Convert caffe model (from numpy data) to keras model python caffe_to_keras.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment