CaffeJS - Development Guide
Checkout the project and run
npm install in the root directory to get started. Now you can start diving into the code.
You can build your code running
gulp or using the file watcher
Organization of the code
You can find the source code in the
src/ directory organized in 5 modules:
- Net - A fork of ConvNetJS with Caffe compatibility (considering model weights, output parameters, etc.); contains the ConvNetJS model
Net.Net, the CaffeJS model
Net.CaffeModel, the the Volume implementation
Net.Voland the layers
- NumJS - An abstraction for operations on Arrays and Volumes
- Utils - An abstractions for utilities and visualizations, such as the GraphDrawer and ActivationDrawer
You can use the script
scripts/convert_caffemodel.py to convert
*.caffemodel files to binary blobs which CaffeJS can load via http and parse. Unfortunately, you need to have
pycaffe installed to generate those files. You can as well download the prepared weights via running
sh fetch_weights.sh in the model directories.
Deploy the docs
gulp deploy to build the
docs-pages folder and deploy it to Github.