pix2pix
pix2pix copied to clipboard
How can i see the values, tf.log(predict_real + EPS) and tf.log(1 - predict_fake + EPS) ??
I want see the values while training, tf.log(predict_real + EPS) and tf.log(1 - predict_fake + EPS). so, i'm add the code(#add code) in the main.
if should(a.progress_freq):
fetches["discrim_loss"] = model.discrim_loss
fetches["gen_loss_GAN"] = model.gen_loss_GAN
fetches["gen_loss_L1"] = model.gen_loss_L1
fetches["predict_real"] = tf.log(model.predict_real + EPS) #add code
fetches["predict_fake"] = tf.log(1 - model.predict_fake + EPS) #add code
if should(a.progress_freq):
# global_step will have the correct step count if we resume from a checkpoint
train_epoch = math.ceil(results["global_step"] / examples.steps_per_epoch)
train_step = (results["global_step"] - 1) % examples.steps_per_epoch + 1
rate = (step + 1) * a.batch_size / (time.time() - start)
remaining = (max_steps - step) * a.batch_size / rate
print("progress epoch %d step %d image/sec %0.1f remaining %dm" % (train_epoch, train_step, rate, remaining / 60))
print("discrim_loss", results["discrim_loss"])
print("gen_loss_GAN", results["gen_loss_GAN"])
print("gen_loss_L1", results["gen_loss_L1"])
print("predict_real", results["predict_real"]) #add code
print("predict_fake", results["predict_fake"]) #add code
but, this code is error...
Traceback (most recent call last):
File "pix2pix.py", line 809, in
How can i see the values ???
You posted it to the wrong repo.