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

Method __init__

diffbir/inference/loop.py:32–43  ·  view source on GitHub ↗
(self, args: Namespace)

Source from the content-addressed store, hash-verified

30class InferenceLoop:
31
32 def __init__(self, args: Namespace) -> "InferenceLoop":
33 self.args = args
34 self.loop_ctx = {}
35 self.pipeline: Pipeline = None
36 with VRAMPeakMonitor("loading cleaner model"):
37 self.load_cleaner()
38 with VRAMPeakMonitor("loading cldm model"):
39 self.load_cldm()
40 self.load_cond_fn()
41 self.load_pipeline()
42 with VRAMPeakMonitor("loading captioner"):
43 self.load_captioner()
44
45 @overload
46 def load_cleaner(self) -> None: ...

Callers

nothing calls this directly

Calls 6

load_cleanerMethod · 0.95
load_cldmMethod · 0.95
load_cond_fnMethod · 0.95
load_pipelineMethod · 0.95
load_captionerMethod · 0.95
VRAMPeakMonitorClass · 0.85

Tested by

no test coverage detected