Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlearning committed Dec 22, 2019
1 parent 583086d commit 93fcc9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion trainers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class Trainer():
def __init__(self, loss_type, netD, netG, device, train_ds, lr_D = 0.0002, lr_G = 0.0002, resample = True, weight_clip = None, use_gradient_penalty = False, drift = 0.001, loss_interval = 50, image_interval = 50, save_img_dir = 'saved_images/'):
self.loss_type = loss_type
self.loss_type, self.device = loss_type, device
self.require_type = get_require_type(self.loss_type)
self.loss = get_gan_loss(self.device, self.loss_type)

Expand Down
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from sklearn.metrics import confusion_matrix
from scipy.io import wavfile
from PIL import Image
from losses.losses import *

def set_lr(optimizer, lrs):
if(len(lrs) == 1):
Expand Down

0 comments on commit 93fcc9d

Please sign in to comment.