MCPcopy Create free account
hub / github.com/Audio-AGI/AudioSep / setup

Method setup

predict.py:11–18  ·  view source on GitHub ↗

Load the model into memory to make running multiple predictions efficient

(self)

Source from the content-addressed store, hash-verified

9
10class 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,

Callers

nothing calls this directly

Calls 1

build_audiosepFunction · 0.90

Tested by

no test coverage detected