Counting 3,146 Big Data & Machine Learning Frameworks, Toolsets, and Examples...
Suggestion? Feedback? Tweet @stkim1

Last Commit
Sep. 23, 2018
May. 28, 2016

Join the chat at Build Status Coverage Status

Fabrik is an online collaborative platform to build, visualize and train deep learning models via a simple drag-and-drop interface. It allows researchers to collaboratively develop and debug models using a web GUI that supports importing, editing and exporting networks written in widely popular frameworks like Caffe, Keras, and TensorFlow.

This app is presently under active development and we welcome contributions. Please check out our issues thread to find things to work on, or ping us on Gitter.

Installation Instructions

Setting up Fabrik on your local machine is really easy. You can setup Fabrik using two methods:

Using Docker

  1. Get the source code on to your machine via git.

    git clone && cd Fabrik
  2. Rename settings/ as

    cp settings/ settings/
  3. Build and run the Docker containers. This might take a while. You should be able to access Fabrik at

    docker-compose up --build

Using Virtual Environment

  1. First set up a virtualenv

    sudo apt-get install python-pip python-dev python-virtualenv
    virtualenv --system-site-packages ~/Fabrik
    source ~/Fabrik/bin/activate
  2. Clone the repository

    git clone --recursive
  3. Rename settings/ as settings/ and change credential in settings/

    cp settings/ settings/
  4. Install redis server and replace the hostname to 'localhost' in settings/ line 99.

    sudo apt-get install redis-server
  5. If you have Caffe, Keras and Tensorflow already installed on your computer, skip this step

    • For Linux users
      cd Fabrik/requirements
      yes Y | sh
      Open your ~/.bashrc file and append this line at the end
      export PYTHONPATH=~/caffe/caffe/python:$PYTHONPATH
      Save, exit and then run
      source ~/.bash_profile
      cd ..
    • For Mac users
  6. Install dependencies

  • For developers:
    pip install -r requirements/dev.txt
  • Others:
    pip install -r requirements/common.txt
  1. Install postgres >= 9.5
  • Setup postgres database

    • Start postgresql by typing sudo service postgresql start
    • Now login as user postgres by running sudo -u postgres psql and type the commands below
      CREATE DATABASE fabrik;
      CREATE USER admin WITH PASSWORD 'fabrik';
      ALTER ROLE admin SET client_encoding TO 'utf8';
      ALTER ROLE admin SET default_transaction_isolation TO 'read committed';
      ALTER ROLE admin SET timezone TO 'UTC';
    • Exit psql by typing in \q and hitting enter.
  • Migrate

    python makemigrations caffe_app
    python migrate
  1. Install node modules
npm install
sudo npm install -g webpack
webpack --progress --watch --colors


python runserver


  • Use example/tensorflow/GoogleNet.pbtxt for tensorflow import
  • Use example/caffe/GoogleNet.prototxt for caffe import
  • Use example/keras/vgg16.json for keras import

Tested models

The model conversion between currently supported frameworks is tested on some models.

Models Caffe Keras Tensorflow
Inception V3
Inception V4
ResNet 101
VGG 16
GoogLeNet × ×
SqueezeNet × ×
DenseNet × ×
AllCNN × ×
FCN32 Pascal × ×
Pix2Pix × ×

Note: For models that use a custom LRN layer (Alexnet), Keras expects the custom layer to be passed when it is loaded from json. is located in keras_app/custom_layers. Alexnet import for Keras



This software is licensed under GNU GPLv3. Please see the included License file. All external libraries, if modified, will be mentioned below explicitly.