Python maskrcnn_benchmark.utils.metric_logger.MetricLogger() Examples
The following are 20
code examples of maskrcnn_benchmark.utils.metric_logger.MetricLogger().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
maskrcnn_benchmark.utils.metric_logger
, or try the search function
.
Example #1
Source File: test_metric_logger.py From maskrcnn-benchmark with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #2
Source File: test_metric_logger.py From DF-Traffic-Sign-Identification with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #3
Source File: test_metric_logger.py From DF-Traffic-Sign-Identification with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #4
Source File: test_metric_logger.py From RRPN_pytorch with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #5
Source File: test_metric_logger.py From RRPN_pytorch with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #6
Source File: test_metric_logger.py From NAS-FCOS with BSD 2-Clause "Simplified" License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #7
Source File: test_metric_logger.py From NAS-FCOS with BSD 2-Clause "Simplified" License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #8
Source File: test_metric_logger.py From training with Apache License 2.0 | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #9
Source File: test_metric_logger.py From training with Apache License 2.0 | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #10
Source File: test_metric_logger.py From maskrcnn-benchmark with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #11
Source File: test_metric_logger.py From Res2Net-maskrcnn with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #12
Source File: test_metric_logger.py From sampling-free with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #13
Source File: test_metric_logger.py From sampling-free with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #14
Source File: test_metric_logger.py From remote_sensing_object_detection_2019 with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #15
Source File: test_metric_logger.py From remote_sensing_object_detection_2019 with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #16
Source File: test_metric_logger.py From DetNAS with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #17
Source File: test_metric_logger.py From DetNAS with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #18
Source File: test_metric_logger.py From R2CNN.pytorch with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)
Example #19
Source File: test_metric_logger.py From R2CNN.pytorch with MIT License | 5 votes |
def test_update(self): meter = MetricLogger() for i in range(10): meter.update(metric=float(i)) m = meter.meters["metric"] self.assertEqual(m.count, 10) self.assertEqual(m.total, 45) self.assertEqual(m.median, 4) self.assertEqual(m.avg, 4.5)
Example #20
Source File: test_metric_logger.py From Res2Net-maskrcnn with MIT License | 5 votes |
def test_no_attr(self): meter = MetricLogger() _ = meter.meters _ = meter.delimiter def broken(): _ = meter.not_existent self.assertRaises(AttributeError, broken)