a-PyTorch-Tutorial-to-Image-Captioning
a-PyTorch-Tutorial-to-Image-Captioning copied to clipboard
caption.py AttributeError: 'NoneType' object has no attribute 'seek'.
Hi, I got an error while running the caption. Py file: checkpoint = torch.load(args.model, map_location=str(device))
Error: AttributeError: 'NoneType' object has no attribute 'seek'. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
How to solve it?Thanks to those who answered!