This file contains 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
from imgaug import augmenters as iaa | |
import imgaug as ia | |
ia.seed(4) | |
import tensorflow as tf | |
tf.random.set_seed(666) | |
aug = iaa.RandAugment(n=2, m=9) | |
BATCH_SIZE = 224 |
This file contains 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
// Interval time to check if runtime is disconnected | |
interval = 1000 * 60; | |
// Busy/Reconnect button top-right | |
reloadButton = document.querySelector('#connect > paper-button > span') | |
setInterval(() => { | |
if (reloadButton.innerText == 'Reconnect') { | |
reloadButton.click(); | |
console.log('Restarting'); |
This file contains 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 python3 | |
"""Run from root directory of repo https://github.com/lengstrom/fast-style-transfer to | |
create a .pb for use with OpenVINO. | |
""" | |
import sys | |
sys.path.insert(0, 'src') | |
import transform | |
import argparse | |
import tensorflow as tf | |
import os |
This file contains 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
"""Simple example on how to log scalars and images to tensorboard without tensor ops. | |
License: BSD License 2.0 | |
""" | |
__author__ = "Michael Gygli" | |
import tensorflow as tf | |
from StringIO import StringIO | |
import matplotlib.pyplot as plt | |
import numpy as np |