(path, new_path)
| 145 | |
| 146 | |
| 147 | def 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 | |
| 155 | def mean_iou(pred, label, num_classes=19): |
nothing calls this directly
no outgoing calls
no test coverage detected