暂时禁用缓存加载功能,移除缓存文件以避免潜在问题

This commit is contained in:
2025-10-23 13:06:24 +08:00
parent 52382e460d
commit ac4af34802

View File

@@ -204,7 +204,10 @@ class Dataset(data.Dataset):
def load_label(filenames):
path = f"{os.path.dirname(filenames[0])}.cache"
if os.path.exists(path):
return torch.load(path, weights_only=False)
# XXX: temporarily disable cache
os.remove(path)
pass
# return torch.load(path, weights_only=False)
x = {}
for filename in filenames:
try: