Skip to content

Instantly share code, notes, and snippets.

View kashefy's full-sized avatar

Youssef Kashef kashefy

  • Berlin, Germany
View GitHub Profile
import tensorflow as tf
# adapted from https://stackoverflow.com/a/40029298/2466336
if __name__ == '__main__':
path_to_events_file = '/home/kashefy/models/ae/log_simple_stats/2017-07-18_12-22-45/events.out.tfevents.1500373527.hobbes'
tag = 'mlp_layer-1/loss_classification_1'
# with open(fpath, "r") as f:
#
#
# Installing Caffe dependencies without sudo privileges:
# The prefix serves as the installation directory for caffe dependencies
# that are not already installed on the system
#
# Set "inputs" according to host machine
export PREFIX_HOST=/mnt/scratch/$USER/caffe_deps
export PREFIX_CUDNN=$PREFIX_HOST/../build/cudnn-7.5
sudo apt-get install gnome-devel
sudo apt-get install python3-dev
sudo apt-get install libcr-dev mpich mpich-doc
sudo apt-get install libncursesw5-dev ncurses-base ncurses-bin ncurses-term
sudo apt-get install gnome-devel python3-dev libcr-dev mpich mpich-doc libncursesw5-dev ncurses-base ncurses-bin ncurses-term
export PYTHON3PATH=`which python3`
export HOME_DIR=`pwd`
sudo apt-get install gnome-devel
sudo apt-get install python3-dev
sudo apt-get install libcr-dev mpich mpich-doc
sudo apt-get install libncursesw5-dev ncurses-base ncurses-bin ncurses-term
sudo apt-get install gnome-devel python3-dev libcr-dev mpich mpich-doc libncursesw5-dev ncurses-base ncurses-bin ncurses-term
export PYTHON3PATH=`which python3`
export HOME_DIR=`pwd`
@kashefy
kashefy / conv2d.py
Created January 13, 2016 19:07
2d convolution using numpy
'''
Created on Jul 13, 2015
@author: kashefy
'''
import numpy as np
from scipy import signal
if __name__ == '__main__':