Unable to load weights from pytorch checkpoint file

#1
by sjtuzhaoxh - opened

│ 461 │ │ except (UnicodeDecodeError, ValueError): │
│ > 462 │ │ │ raise OSError( │
│ 463 │ │ │ │ f"Unable to load weights from pytorch checkpoint fil │
│ 464 │ │ │ │ f"at '{checkpoint_file}'. " │
│ 465 │ │ │ │ "If you tried to load a PyTorch model from a TF 2.0 │
└─────────────────────────────────────────────────────────────────────────────┘
OSError: Unable to load weights from pytorch checkpoint file for
'd:\tool\fantast\yolos-small-finetuned-for-seal\pytorch_model.bin' at
'd:\tool\fantast\yolos-small-finetuned-for-seal\pytorch_model.bin'. If you
tried to load a PyTorch model from a TF 2.0 checkpoint, please set
from_tf=True.

Sign up or log in to comment