DCGAN-tensorflow icon indicating copy to clipboard operation
DCGAN-tensorflow copied to clipboard

How to input new testing set to the trained discriminator

Open sd301 opened this issue 8 years ago • 2 comments

Hi, so I want to feed in new testing images to the trained discriminator. I restored the model but don't know what should I feed in the self.sess.run. Can anyone help? Should I code this in init or should I make a new function within the DCGAN class?

Many thanks!

sd301 avatar May 19 '17 13:05 sd301

Also I'm getting an error when testing (without '--train'):

ValueError: Variable generator/g_h0_lin/Matrix already exists, disallowed. Did you mean to set reuse=True in VarScope? Originally defined at:

File "/home//DCGAN-tensorflow-master/ops.py", line 98, in linear tf.random_normal_initializer(stddev=stddev)) File "/home/DCGAN-tensorflow-master/model.py", line 407, in generator z, self.gf_dim8s_h16*s_w16, 'g_h0_lin', with_w=True) File "/home/DCGAN-tensorflow-master/model.py", line 117, in build_model self.G = self.generator(self.z)

sd301 avatar May 19 '17 15:05 sd301

Hey, man, can you tell me how you saved the discriminator model

Whatsetsthisend avatar Dec 01 '20 05:12 Whatsetsthisend