MCPcopy Create free account
hub / github.com/Stability-AI/stable-audio-tools / __init__

Method __init__

pre_encode.py:40–55  ·  view source on GitHub ↗
(
        self,
        model,
        output_path,
        is_discrete=False,
        model_half=False,
        model_config=None,
        dataset_config=None,
        sample_size=1920000,
        no_pad=False,
        args_dict=None
    )

Source from the content-addressed store, hash-verified

38
39class PreEncodedLatentsInferenceWrapper(pl.LightningModule):
40 def __init__(
41 self,
42 model,
43 output_path,
44 is_discrete=False,
45 model_half=False,
46 model_config=None,
47 dataset_config=None,
48 sample_size=1920000,
49 no_pad=False,
50 args_dict=None
51 ):
52 super().__init__()
53 self.save_hyperparameters(ignore=['model'])
54 self.model = model
55 self.output_path = Path(output_path)
56
57 def prepare_data(self):
58 # runs on rank 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected