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
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt update | |
sudo apt-get install gdebi-core | |
sudo add-apt-repository ppa:openrazer/stable | |
sudo add-apt-repository ppa:lah7/polychromatic | |
sudo apt update |
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
def train_dcgan(generator_func, discriminator_func, data_in, model_weights_name_prefix, load_model=False, | |
epochs=10, batch_size=32, lr_opt=1e-3, lr_d_opt=1e-4, plot_epoch=None): | |
# get image shape | |
image_shape = data_in[0,:,:,:].shape | |
print("image shape:",image_shape) | |
K.clear_session() | |
# use generator and discriminator functions and make gan model |
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
import sys | |
import os | |
import re | |
import gc | |
import traceback | |
import tqdm | |
import mmap | |
import datetime as dt |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer