MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / copy_model

Function copy_model

CV/SemSegPaddleDG/eval.py:147–152  ·  view source on GitHub ↗
(path, new_path)

Source from the content-addressed store, hash-verified

145
146
147def copy_model(path, new_path):
148 shutil.rmtree(new_path, ignore_errors=True)
149 shutil.copytree(path, new_path)
150 model_path = os.path.join(new_path, '__model__')
151 if os.path.exists(model_path):
152 os.remove(model_path)
153
154
155def mean_iou(pred, label, num_classes=19):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected