MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / str2list

Function str2list

config.py:280–283  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

278 cfg.MODEL.MSCALE_LO_SCALE = args.mscale_lo_scale
279
280 def str2list(s):
281 alist = s.split(',')
282 alist = [float(x) for x in alist]
283 return alist
284
285 if args.n_scales:
286 cfg.MODEL.N_SCALES = str2list(args.n_scales)

Callers 1

assert_and_infer_cfgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected