Load the model into memory to make running multiple predictions efficient
(self)
| 9 | |
| 10 | class Predictor(BasePredictor): |
| 11 | def setup(self) -> None: |
| 12 | """Load the model into memory to make running multiple predictions efficient""" |
| 13 | |
| 14 | self.model = build_audiosep( |
| 15 | config_yaml="config/audiosep_base.yaml", |
| 16 | checkpoint_path="checkpoint/audiosep_base_4M_steps.ckpt", |
| 17 | device="cuda", |
| 18 | ) |
| 19 | |
| 20 | def predict( |
| 21 | self, |
nothing calls this directly
no test coverage detected