subatomicseer
commited on
Commit
•
04b3675
1
Parent(s):
b71d238
Update text_speech_codes.py
Browse files- text_speech_codes.py +1 -1
text_speech_codes.py
CHANGED
@@ -71,7 +71,7 @@ class TextSpeechCodesDataset(datasets.GeneratorBasedBuilder):
|
|
71 |
for key, path in enumerate(data_dirs):
|
72 |
id_ = path.split("/")[-1].replace(".pt", "")
|
73 |
|
74 |
-
data = torch.load(path, map_location="cpu")
|
75 |
for i, (k, v) in enumerate(data.items()):
|
76 |
acoustic_tokens = v["acoustic_codes"]
|
77 |
semantic_tokens = v["semantic_codes"]
|
|
|
71 |
for key, path in enumerate(data_dirs):
|
72 |
id_ = path.split("/")[-1].replace(".pt", "")
|
73 |
|
74 |
+
data = torch.load(path, map_location="cpu", weights_only=False)
|
75 |
for i, (k, v) in enumerate(data.items()):
|
76 |
acoustic_tokens = v["acoustic_codes"]
|
77 |
semantic_tokens = v["semantic_codes"]
|