Skip to content

Instantly share code, notes, and snippets.

@GymbylCoding
GymbylCoding / Perspective
Last active December 16, 2021 09:59
Perspective Virtual Camera System
Perspective Virtual Camera System
Licensed under the MIT license, which basically means you can do anything you want with it.
@lachlanhurst
lachlanhurst / build-gdal-combined-lib.sh
Last active May 14, 2021 02:25
Script for building GDAL for iOS and the iOS simulators
#!/bin/bash
PREFIX=`pwd`/install/
rm -rf $PREFIX
mkdir $PREFIX
LOG=./log
rm -rf $LOG
mkdir $LOG
if [ -e ${PREFIX} ]
then
@kendricktan
kendricktan / capsule_networks.py
Last active August 17, 2021 17:12
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