MCPcopy Create free account
hub / github.com/42dot/VFDepth / test_ddp

Function test_ddp

eval.py:29–35  ·  view source on GitHub ↗
(rank, cfg)

Source from the content-addressed store, hash-verified

27
28
29def test_ddp(rank, cfg):
30 print("Evaluating")
31 utils.setup_ddp(rank, cfg['ddp']['world_size'])
32 model = VFDepthAlgo(cfg, rank)
33 trainer = VFDepthTrainer(cfg, rank, use_tb = False)
34 trainer.evaluate(model, vis_results = cfg['eval']['eval_visualize'])
35 utils.clear_ddp()
36
37
38if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

evaluateMethod · 0.95
VFDepthAlgoClass · 0.90
VFDepthTrainerClass · 0.90

Tested by

no test coverage detected