暂时禁用缓存加载功能,移除缓存文件以避免潜在问题
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user