MCPcopy Create free account
hub / github.com/SooLab/CGFormer / _get_batch_fmtstr

Method _get_batch_fmtstr

utils/misc.py:110–113  ·  view source on GitHub ↗
(self, num_batches)

Source from the content-addressed store, hash-verified

108 logger.info(" ".join(entries))
109
110 def _get_batch_fmtstr(self, num_batches):
111 num_digits = len(str(num_batches // 1))
112 fmt = "{:" + str(num_digits) + "d}"
113 return "[" + fmt + "/" + fmt.format(num_batches) + "]"
114
115
116def trainMetricGPU(output, target, threshold=0.35, pr_iou=0.5):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected