(config)
| 11 | from .dat import DAT |
| 12 | |
| 13 | def build_model(config): |
| 14 | |
| 15 | model_type = config.MODEL.TYPE |
| 16 | if model_type == 'dat': |
| 17 | model = DAT(**config.MODEL.DAT) |
| 18 | else: |
| 19 | raise NotImplementedError(f"Unkown model: {model_type}") |
| 20 | |
| 21 | return model |