检查点加载出错,即使检查点完好(未损坏)
正在从 checkpoints/aba/latest_net_G_A.pth 加载模型 跟踪调试 (最新调用): File "/kaggle/working/pytorch-CycleGAN-and-pix2pix/train.py", line 38, in model.setup(opt) # 正常设置: 加载和打印网络; 创建调度器 ^^^^^^^^^^^^^^^^ File "/kaggle/working/pytorch-CycleGAN-and-pix2pix/models/base_model.py", line 102, in setup state_dict = torch.load(load_path, map_location=str(self.device), weights_only=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/torch/serialization.py", line 1072, in load with _open_zipfile_reader(opened_file) as opened_zipfile: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/torch/serialization.py", line 480, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PytorchStreamReader 读取 zip 存档失败: 未找到中心目录
内容来源: junyanz/pytorch-CycleGAN-and-pix2pix