Skip to content

Instantly share code, notes, and snippets.

View kashefy's full-sized avatar

Youssef Kashef kashefy

  • Berlin, Germany
View GitHub Profile
@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__':
# 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
@kashefy
kashefy / fileSystemUtils.py
Created September 29, 2015 14:07
file system utilities
import os
def gen_paths(dir_src, func_filter=None):
if func_filter is None:
def func_filter(fileName):
return True
dst = []
@kashefy
kashefy / val_59.txt
Created August 7, 2015 10:23
Entities from the PASCAL-Context db assigned to the validation set. Obtained from http://www.cs.stanford.edu/~roozbeh/pascal-context/59_context_labels.tar.gz
2008_000002
2008_000003
2008_000007
2008_000009
2008_000016
2008_000021
2008_000026
2008_000027
2008_000032
2008_000034
@kashefy
kashefy / rename_img_files
Created June 16, 2015 13:03
traversing subdirectories and renaming image files with strange windows-specific character
'''
Created on Jun 16, 2015
@author: kashefy
'''
import argparse
import os
def list_paths(root_path):