(config, *args, **kwargs)
| 4 | |
| 5 | |
| 6 | def build_semantic_sam_head(config, *args, **kwargs): |
| 7 | model_name = config['MODEL']['HEAD'] |
| 8 | if not is_model(model_name): |
| 9 | raise ValueError(f'Unkown model: {model_name}') |
| 10 | |
| 11 | body = model_entrypoints(model_name)(config, *args, **kwargs) |
| 12 | return body |
no test coverage detected