Skip to content

Instantly share code, notes, and snippets.

View atinesh-s's full-sized avatar
🏠
Working from home

Atinesh Singh atinesh-s

🏠
Working from home
View GitHub Profile
@atinesh-s
atinesh-s / Dockerfile
Last active April 25, 2021 04:56
Pytorch-Docker-Deployment
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y apt-utils \
python3.8 \
python3-pip \
libgl1-mesa-glx \
nano
WORKDIR /app
@atinesh-s
atinesh-s / installing_caffe.md
Created February 28, 2019 06:21 — forked from nikitametha/installing_caffe.md
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

from preprocess.normalize import normalize_image, resize_image, crop_center, preprocess_signature
import tensorflow.contrib.slim as slim
import skimage.transform
import tensorflow as tf
import skimage.data
import numpy as np
import glob
import cv2
import os
@atinesh-s
atinesh-s / DESolver.cpp
Last active November 26, 2017 04:56
Differential Evolution C++ Code - University of California, Berkeley
#include <memory.h>
#include "DESolver.h"
#define Element(a,b,c) a[b*nDim+c]
#define RowVector(a,b) (&a[b*nDim])
#define CopyVector(a,b) memcpy((a),(b),nDim*sizeof(double))
DESolver::DESolver(int dim,int popSize) :
nDim(dim), nPop(popSize),
generations(0), strategy(stRand1Exp),