We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ba69b commit c26b2f8Copy full SHA for c26b2f8
main.py
@@ -103,10 +103,20 @@
103
# Update D
104
optimizerD.step()
105
106
+ # TRAINING THE GENERATOR
107
+ # netG.zero_grad()
108
+ # target = Variable(torch.ones(real.size()[0])).to(device)
109
+ # output = netD(generated)
110
# TRAINING THE GENERATOR
111
netG.zero_grad()
112
target = Variable(torch.ones(real.size()[0])).to(device)
113
+ generated = netG(profile)
114
+ generated_eyes, generated_nose, generated_cheeks = netG(profile) # Extract the generated components
115
+
116
output = netD(generated)
117
118
119
120
121
# G wants to :
122
# (a) have the synthetic images be accepted by D (= look like frontal images of people)
0 commit comments