Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GAN] #11 Simplify Loss Calculation: Create a Function for Loss Calculation #11

Open
veeradi34 opened this issue Oct 17, 2024 · 0 comments
Labels

Comments

@veeradi34
Copy link
Contributor

Description: The calculation of the discriminator and generator losses in the training loop is verbose. This can be simplified by creating a dedicated function.

Tasks:

Create a function calculate_losses(real_validity, fake_validity, criterion) that returns the losses for both the discriminator and generator.
Update the training loop to call this function.

@veeradi34 veeradi34 added the GAN label Oct 18, 2024
@tushroy81 tushroy81 changed the title #11 Simplify Loss Calculation: Create a Function for Loss Calculation [GAN] #11 Simplify Loss Calculation: Create a Function for Loss Calculation Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant