Skip to content

Instantly share code, notes, and snippets.

View colllin's full-sized avatar

Collin Kindrom colllin

View GitHub Profile
@colllin
colllin / Install NVIDIA Driver and CUDA.md
Last active November 2, 2019 18:02 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@colllin
colllin / globalmaptiles.py
Last active November 29, 2017 19:51 — forked from tucotuco/globalmaptiles.py
Classes to calculate Tile coordinates
# From https://gist.github.com/colllin/c02319fe3202470cc4d0a0b73cdbd1a6
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
@colllin
colllin / capsule_networks.py
Created November 21, 2017 23:37 — forked from kendricktan/capsule_networks.py
Clean Code for Capsule Networks
"""
Dynamic Routing Between Capsules
https://arxiv.org/abs/1710.09829
"""
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.transforms as transforms