MCPcopy Create free account
hub / github.com/HYUNJS/SGT / id_offset_adder

Function id_offset_adder

projects/Datasets/MIX/build.py:27–34  ·  view source on GitHub ↗
(dataset_dicts, tid_offset, id_offset)

Source from the content-addressed store, hash-verified

25
26
27def id_offset_adder(dataset_dicts, tid_offset, id_offset):
28 for i in range(len(dataset_dicts)):
29 for j in range(len(dataset_dicts[i]['annotations'])):
30 dataset_dicts[i]['annotations'][j]['id'] += id_offset
31 tid = dataset_dicts[i]['annotations'][j]['track_id']
32 if tid != -1:
33 dataset_dicts[i]['annotations'][j]['track_id'] += tid_offset
34 return dataset_dicts
35
36
37def print_mix_dataset_info(dataset_dicts, dataset_names, obj_id_set_list, bbox_stat_list):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected