Skip to content

Instantly share code, notes, and snippets.

View saksham789's full-sized avatar

Saksham vikram saksham789

  • National Institute Of Technology,Patna
  • Gurgaon
View GitHub Profile
@saksham789
saksham789 / plot_multiple_images.py
Created September 19, 2019 10:54 — forked from humandotlearning/plot_multiple_images.py
multiple image plot and some image augmentations
import numpy as np
import matplotlib.pyplot as plt
#utility fn. for plots
def ceildiv(a, b):
return -(-a // b)
#fn. to plot multiple images
def plots(ims, figsize=(12,6), rows=1, interp=False, titles=None, maintitle=None):
if type(ims[0]) is np.ndarray:
@saksham789
saksham789 / cuda_driver_install.sh
Created September 19, 2019 10:53 — forked from humandotlearning/cuda_driver_install.sh
all drivers related to cuda are installed
#!/bin/bash
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl2_2.1.4-1+cuda9.0_amd64.deb
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/libnccl-dev_2.1.4-1+cuda9.0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
sudo dpkg -i libcudnn7_7.0.5.15-1+cuda9.0_amd64.deb
sudo dpkg -i libcudnn7-dev_7.0.5.15-1+cuda9.0_amd64.deb
sudo dpkg -i libnccl2_2.1.4-1+cuda9.0_amd64.deb
@saksham789
saksham789 / install_docker_ubuntu_16.04.sh
Created September 17, 2019 15:22 — forked from gauravkaila/install_docker_ubuntu_16.04.sh
Install Docker and nvidia-docker on Ubuntu-16.04
#!/bin/bash
# add the GPG key for the official Docker repository to the system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# add the Docker repository to APT sources
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# update the package database with the Docker packages from the newly added repo
sudo apt-get update