This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def format_bytes(size): | |
# 2**10 = 1024 | |
power = 2 ** 10 | |
n = 0 | |
power_labels = {0: '', 1: 'K', 2: 'M', 3: 'G', 4: 'T'} | |
while size > power: | |
size /= power |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
sys.path.append("..") | |
import os | |
import tensorflow as tf | |
from gan.load_data import load_data | |
from gan.network import DoppelGANgerGenerator, Discriminator, \ | |
RNNInitialStateType, AttrDiscriminator | |
from gan.doppelganger import DoppelGANger | |
from gan import output |