- Generative Adversarial Networks Projects
- Kailash Ahirwar
- 127字
- 2025-04-04 14:59:31
Visualizing losses
To visualize the losses for the training, start the tensorboard server, as follows:
tensorboard --logdir=logs
Now, open localhost:6006 in your browser. The SCALARS section of TensorBoard contains plots for both losses:

Loss plot for the generator network

Loss plot for the discriminator network
These plots will help you to decide whether to continue or stop the training. If the losses are not decreasing anymore, you can stop the training, as there is no chance of improvement. If the losses keep increasing, you must stop the training. Play with the hyperparameters and select a set of hyperparameters that you think might provide better results. If the losses are decreasing gradually, keep training the model.