MCPcopy
hub / github.com/ifzhang/FairMOT / mkdir_if_missing

Function mkdir_if_missing

src/lib/tracking_utils/utils.py:19–21  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

17np.set_printoptions(linewidth=320, formatter={'float_kind': '{:11.5g}'.format}) # format short g, %precision=5
18
19def mkdir_if_missing(d):
20 if not osp.exists(d):
21 os.makedirs(d)
22
23
24def float3(x): # format floats to 3 decimals

Callers 7

eval_seqFunction · 0.90
mainFunction · 0.90
eval_seqFunction · 0.90
mainFunction · 0.90
eval_seqFunction · 0.90
mainFunction · 0.90
demoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected