暂时禁用缓存加载功能,移除缓存文件以避免潜在问题
This commit is contained in:
@@ -204,7 +204,10 @@ class Dataset(data.Dataset):
|
|||||||
def load_label(filenames):
|
def load_label(filenames):
|
||||||
path = f"{os.path.dirname(filenames[0])}.cache"
|
path = f"{os.path.dirname(filenames[0])}.cache"
|
||||||
if os.path.exists(path):
|
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 = {}
|
x = {}
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user