discopat.nn_training.torch_detection_utils.utils
Functions
|
Run all_gather on arbitrary picklable data (not necessarily tensors). |
|
|
|
|
|
|
|
Reduce the values in the dictionary from all processes so that all processes. |
|
Disable printing when not in master process. |
Classes
|
|
|
Track a series of values and provide access to smoothed values over a window or the global series average. |
- 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.