pytorch-CycleGAN-and-pix2pix
pytorch-CycleGAN-and-pix2pix copied to clipboard
Regarding epoch value in network.py file
How the current epoch value is passed to below function in network.py file?
def lambda_rule(epoch): lr_l = 1.0 - max(0, epoch + opt.epoch_count - opt.n_epochs) / float(opt.n_epochs_decay + 1)
How can i get current epoch value outside this function in network.py?
You should be able to call scheduler.get_last_lr() within the update_learning_rate() function.