discopat.nn_training.torch_detection_utils package
Submodules
discopat.nn_training.torch_detection_utils.coco_eval module
- class discopat.nn_training.torch_detection_utils.coco_eval.CocoEvaluator(coco_gt, iou_types)[source]
Bases:
object
discopat.nn_training.torch_detection_utils.coco_utils module
discopat.nn_training.torch_detection_utils.engine module
discopat.nn_training.torch_detection_utils.utils module
- class discopat.nn_training.torch_detection_utils.utils.MetricLogger(delimiter='\t')[source]
Bases:
object
- class discopat.nn_training.torch_detection_utils.utils.SmoothedValue(window_size=20, fmt=None)[source]
Bases:
objectTrack a series of values and provide access to smoothed values over a window or the global series average.
- property avg
- property global_avg
- property max
- property median
- property value
- discopat.nn_training.torch_detection_utils.utils.all_gather(data)[source]
Run all_gather on arbitrary picklable data (not necessarily tensors).
- Parameters:
data – any picklable object
- Returns:
list of data gathered from each rank
- Return type:
list[data]
- discopat.nn_training.torch_detection_utils.utils.reduce_dict(input_dict, average=True)[source]
Reduce the values in the dictionary from all processes so that all processes.
- Parameters:
input_dict (dict) – all the values will be reduced
average (bool) – whether to do average or sum have the averaged results.
Returns a dict with the same fields as input_dict, after reduction.