Skip to content

Instantly share code, notes, and snippets.

View kcbighuge's full-sized avatar

James Lee kcbighuge

View GitHub Profile
@kcbighuge
kcbighuge / pytorch_tutorial.ipynb
Last active February 2, 2018 01:04
PyTorch tutorial notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kcbighuge
kcbighuge / request_reviews.py
Created October 2, 2017 06:49
script to request udacity review assignment
#!/usr/bin/env python
import sys
import logging
import requests
import time
import pytz
from dateutil import parser
from datetime import datetime, timedelta
utc = pytz.UTC
@kcbighuge
kcbighuge / generator.py
Created September 27, 2017 00:26
Generator function for Udacity Face Generation Project
def generator(z, out_channel_dim, is_train=True, alpha=0.2):
"""
Create the generator network
:param z: Input z
:param out_channel_dim: The number of channels in the output image
:param is_train: Boolean if generator is being used for training
:return: The tensor output of the generator
"""
with tf.variable_scope("generator", reuse=(not is_train)):