MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / load_func

Function load_func

tools/convert_crowdhuman_to_coco.py:11–17  ·  view source on GitHub ↗
(fpath)

Source from the content-addressed store, hash-verified

9DEBUG = False
10
11def load_func(fpath):
12 print('fpath', fpath)
13 assert os.path.exists(fpath)
14 with open(fpath,'r') as fid:
15 lines = fid.readlines()
16 records =[json.loads(line.strip('\n')) for line in lines]
17 return records
18
19if __name__ == '__main__':
20 if not os.path.exists(OUT_PATH):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected