MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / load_func

Function load_func

PATH/core/solvers/utils/peddet_tester_dev.py:635–642  ·  view source on GitHub ↗
(fpath)

Source from the content-addressed store, hash-verified

633 return ji
634
635def load_func(fpath):
636 assert os.path.exists(fpath)
637 with PetrelHelper.open(fpath) as fid:
638 # with open(fpath,'r') as fid:
639 lines = fid.readlines()
640 records = [json.loads(line.strip('\n')) for line in lines]
641 if len(records) == 1: records = records[0]
642 return records
643
644def worker(result_queue, records, gt, score_thr, bm_thr):
645

Callers 1

computeJaccardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected