Utilities. This functions are not required for competitors but was developed to prepare the dataset for the competition.
SmoothedValue(window_size=20, fmt=None)
Track a series of values and provide access to smoothed values over a
window or the global series average.
all_gather(data)
Run all_gather on arbitrary picklable data (not necessarily tensors)
Args:
data: any picklable object
Returns:
list[data]: list of data gathered from each rank
reduce_dict(input_dict, average=True)
Args:
input_dict (dict): all the values will be reduced
average (bool): whether to do average or sum
Reduce the values in the dictionary from all processes so that all processes
have the averaged results. Returns a dict with the same fields as
input_dict, after reduction.
MetricLogger(delimiter='\t')
warmup_lr_scheduler(optimizer, warmup_iters, warmup_factor)
setup_for_distributed(is_master)
This function disables printing when not in master process
is_dist_avail_and_initialized[source]
is_dist_avail_and_initialized()
save_on_master(*args, **kwargs)
init_distributed_mode(args)