Loading audiolm_pytorch/soundstream.py +7 −0 Original line number Diff line number Diff line Loading @@ -498,6 +498,13 @@ class SoundStream(nn.Module): assert path.exists() self.load_state_dict(torch.load(str(path))) def load_from_trainer_saved_obj(self, path, ema = False): key = 'ema_model' if ema else 'model' path = Path(path) assert path.exists() trainer_obj = torch.load(str(path)) self.load_state_dict(trainer_obj[key]) def non_discr_parameters(self): return [ *self.encoder.parameters(), Loading setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name = 'audiolm-pytorch', packages = find_packages(exclude=[]), version = '0.12.3', version = '0.12.4', license='MIT', description = 'AudioLM - Language Modeling Approach to Audio Generation from Google Research - Pytorch', author = 'Phil Wang', Loading Loading
audiolm_pytorch/soundstream.py +7 −0 Original line number Diff line number Diff line Loading @@ -498,6 +498,13 @@ class SoundStream(nn.Module): assert path.exists() self.load_state_dict(torch.load(str(path))) def load_from_trainer_saved_obj(self, path, ema = False): key = 'ema_model' if ema else 'model' path = Path(path) assert path.exists() trainer_obj = torch.load(str(path)) self.load_state_dict(trainer_obj[key]) def non_discr_parameters(self): return [ *self.encoder.parameters(), Loading
setup.py +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ from setuptools import setup, find_packages setup( name = 'audiolm-pytorch', packages = find_packages(exclude=[]), version = '0.12.3', version = '0.12.4', license='MIT', description = 'AudioLM - Language Modeling Approach to Audio Generation from Google Research - Pytorch', author = 'Phil Wang', Loading