MCPcopy Create free account
hub / github.com/RolandGao/RegSeg / validate_multiple

Function validate_multiple

train.py:267–272  ·  view source on GitHub ↗
(configs)

Source from the content-addressed store, hash-verified

265 return best_mIU,best_global_accuracy
266
267def validate_multiple(configs):
268 confmats=[]
269 for config in configs:
270 confmat=validate_one(config)
271 confmats.append(confmat)
272 return confmats
273def validate_one(config):
274 setup_env(config)
275 device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')

Callers

nothing calls this directly

Calls 1

validate_oneFunction · 0.85

Tested by

no test coverage detected