-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Description
loading the model from checkpoints/aba/latest_net_G_A.pth
Traceback (most recent call last):
File "/kaggle/working/pytorch-CycleGAN-and-pix2pix/train.py", line 38, in
model.setup(opt) # regular setup: load and print networks; create schedulers
^^^^^^^^^^^^^^^^
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 failed reading zip archive: failed finding central directory