(self)
| 15 | class BFRInferenceLoop(InferenceLoop): |
| 16 | |
| 17 | def load_cleaner(self) -> None: |
| 18 | self.cleaner: SwinIR = instantiate_from_config( |
| 19 | OmegaConf.load("configs/inference/swinir.yaml") |
| 20 | ) |
| 21 | weight = load_model_from_url(MODELS["swinir_face"]) |
| 22 | self.cleaner.load_state_dict(weight, strict=True) |
| 23 | self.cleaner.eval().to(self.args.device) |
| 24 | |
| 25 | def load_pipeline(self) -> None: |
| 26 | self.pipeline = SwinIRPipeline( |
nothing calls this directly
no test coverage detected