Instantly share code, notes, and snippets.

Douglas Duhaime duhaime

View GitHub Profile
View FBOUtils.js
/*
@author zz85
*/
// Utils for FBO Particles Simulations
THREE.FBOUtils = function( textureWidth, renderer, simulationShader ) {
// Init RTT stuff
View autoencoder.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View OBJLoader.js
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.OBJLoader = function(manager) {
this.manager = (manager !== undefined) ? manager : THREE.DefaultLoadingManager;
this.materials = null;
View .gitignore
*.pem
*.swp
*.DS_Store
__pycache__/
node_modules/
uploaded_files/
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
<style>* { background: red }</style>
</head>
<body>
<h1>HEY!</h1>
</body>
View detect_frame_pose.py
import os, sys, glob, math
sys.path.append('pose-tensorflow')
sys.path.append('.')
sys.path.append('..')
sys.path.append('pose-tensorflow/models')
from scipy.misc import imread
from config import load_config
from nnet import predict
from dataset.pose_dataset import data_to_input
import numpy as np
View BigGAN.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View save.py
# given a model named `decoder`
decoder.save('mnist-decoder.hdf5')
# run `pip install tensorflowjs` for the tensorflowjs_converter command
cmd = 'tensorflowjs_converter --input_format keras \
mnist-decoder.hdf5 \
mnist-decoder-js'
os.system(cmd)