This is a guide on how to install Caffe for Ubuntu 16.04 and above, without GPU support (No CUDA required).
sudo apt-get install libopencv-dev python-opencv
| import numpy as np | |
| from keras.models import Model | |
| from keras.layers import Dense, Activation, Lambda, Input | |
| import keras.backend as K | |
| from keras.utils import to_categorical | |
| # Model definition | |
| def foo(ip): | |
| a = ip[1] | |
| x = ip[0] |