Skip to content

Instantly share code, notes, and snippets.

@nikitametha
nikitametha / installing_caffe.md
Last active April 2, 2024 18:37
Installing Caffe on Ubuntu 16.04 and above (CPU ONLY, WITHOUT CUDA OR GPU SUPPORT)

This is a guide on how to install Caffe for Ubuntu 16.04 and above, without GPU support (No CUDA required).

Prerequisites:

OpenCV

sudo apt-get install libopencv-dev python-opencv

OpenBLAS OR Atlas

@akshaychawla
akshaychawla / funky_lambda.py
Created November 22, 2017 05:44
Lambda layer with multiple inputs in Keras.
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]