fc8951bbd36b14099e41fe171ab57e9f3937fe4f,congan_train.py,,train,#,191
Before Change
end = timer(); print(f"---load real imgs elapsed time: {end-start}")
start = timer()
real_data = autograd.Variable(r_image.cuda(),requires_grad=True)
//TODO: check load labels
real_label = autograd.Variable(r_label.cuda())
After Change
print(f"---train G elapsed time: {end - start}")
//---------------------TRAIN D------------------------
for p in aD.parameters(): // reset requires_grad
p.requires_grad_(True) // they are set to False below in training G
for i in range(CRITIC_ITERS):
print("Critic iter: " + str(i))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: jalola/improved-wgan-pytorch
Commit Name: fc8951bbd36b14099e41fe171ab57e9f3937fe4f
Time: 2018-05-08
Author: waterstorm64@gmail.com
File Name: congan_train.py
Class Name:
Method Name: train
Project Name: akanimax/pro_gan_pytorch
Commit Name: e9e215c2f7ca0bbbded08d34c834c2a3f43bb8d0
Time: 2019-01-09
Author: akanimax@gmail.com
File Name: pro_gan_pytorch/Losses.py
Class Name: WGAN_GP
Method Name: __gradient_penalty
Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 8f6a6f153781d0908fb0904349aae844494026ea
Time: 2018-12-03
Author: yanzhaoyi@outlook.com
File Name: models/shiftnet_model.py
Class Name: ShiftNetModel
Method Name: backward_D