Skip to content

Commit

Permalink
bug fixes, visualization updates, better logging, improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslie committed Oct 20, 2020
1 parent eed48cb commit 06111cb
Show file tree
Hide file tree
Showing 56 changed files with 1,125 additions and 1,387 deletions.
10 changes: 3 additions & 7 deletions src/experiment/experiment/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,10 @@ def _do_stats(self, compressed_net):
size_rel = compressed_net.size() / self._size_original
flops_rel = compressed_net.flops() / self._flops_original

# test network (only if needed)
if self._logger.store_test_stats_now():
loss, acc1, acc5 = self._net_trainer.test(compressed_net)
else:
loss, acc1, acc5 = None, None, None

# store them
self._logger.store_test_stats(loss, acc1, acc5, size_rel, flops_rel)
self._logger.store_test_stats(
size_rel, flops_rel, lambda: self._net_trainer.test(compressed_net)
)

def _print_loader_msg(self):
"""Print information about the loader."""
Expand Down
Loading

0 comments on commit 06111cb

Please sign in to comment.