From ac4af3480283221057a34f14d9c3a3cb6706a2d3 Mon Sep 17 00:00:00 2001 From: Yunhao Meng Date: Thu, 23 Oct 2025 13:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=A6=81=E7=94=A8=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E5=8A=A0=E8=BD=BD=E5=8A=9F=E8=83=BD=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E7=BC=93=E5=AD=98=E6=96=87=E4=BB=B6=E4=BB=A5=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=BD=9C=E5=9C=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/dataset.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/dataset.py b/utils/dataset.py index f6eaea2..e9984ad 100644 --- a/utils/dataset.py +++ b/utils/dataset.py @@ -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: