Skip to content

Commit

Permalink
compute inception score in test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidtronix committed Jan 20, 2025
1 parent f064d9a commit 4b2a8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ml4h/models/diffusion_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def test_step(self, batch):
num_images=self.batch_size, diffusion_steps=20
)
self.kid.update_state(images, generated_images)
self.inception_score.update_state(images, generated_images)
self.inception_score.update_state(generated_images)

return {m.name: m.result() for m in self.metrics}

Expand Down

0 comments on commit 4b2a8f4

Please sign in to comment.