MCPcopy
hub / github.com/XPixelGroup/DiffBIR / load_cleaner

Method load_cleaner

diffbir/inference/bfr_loop.py:17–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15class 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(

Callers

nothing calls this directly

Calls 2

instantiate_from_configFunction · 0.85
load_model_from_urlFunction · 0.85

Tested by

no test coverage detected