MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / draw

Function draw

VAE_AutoEncoder/utils.py:54–63  ·  view source on GitHub ↗

:param gen_loss: :param disc_loss: :return:

(loss)

Source from the content-addressed store, hash-verified

52 pass
53
54def draw(loss):
55 """
56 :param gen_loss:
57 :param disc_loss:
58 :return:
59 """
60 plt.plot(range(1, len(loss) + 1), loss, label='VAELoss')
61 plt.legend()
62 plt.title('VAE-LOSS')
63 plt.savefig('logs/figure.png')
64
65def save_images(imgs,epoch,step):
66 imgs = imgs.detach().cpu().numpy()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected