Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/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 |
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
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)): |
NewerOlder