fix bug
Browse files- modeling_songformer.py +1 -1
modeling_songformer.py
CHANGED
|
@@ -96,7 +96,7 @@ class SongFormerModel(PreTrainedModel):
|
|
| 96 |
def __init__(self, config: SongFormerConfig):
|
| 97 |
super().__init__(config)
|
| 98 |
device = "cpu"
|
| 99 |
-
root_dir = os.
|
| 100 |
with open(os.path.join(root_dir, "muq_config2.json"), "r") as f:
|
| 101 |
muq_config_file = OmegaConf.load(f)
|
| 102 |
# self.muq = MuQ.from_pretrained("OpenMuQ/MuQ-large-msd-iter", device_map=None)
|
|
|
|
| 96 |
def __init__(self, config: SongFormerConfig):
|
| 97 |
super().__init__(config)
|
| 98 |
device = "cpu"
|
| 99 |
+
root_dir = os.environ["SONGFORMER_LOCAL_DIR"]
|
| 100 |
with open(os.path.join(root_dir, "muq_config2.json"), "r") as f:
|
| 101 |
muq_config_file = OmegaConf.load(f)
|
| 102 |
# self.muq = MuQ.from_pretrained("OpenMuQ/MuQ-large-msd-iter", device_map=None)
|