Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the weights io on cpu only torch version #1

Open
toodef opened this issue May 20, 2020 · 0 comments
Open

Check the weights io on cpu only torch version #1

toodef opened this issue May 20, 2020 · 0 comments
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@toodef
Copy link
Member

toodef commented May 20, 2020

The error occurred:

~\Anaconda3\lib\site-packages\piepline\data_processor\model.py in load_weights(self, weights_file)
     54             file = self._checkpoints_manager.weights_file()
     55         print("Model inited by file:", file, end='; ')
---> 56         pretrained_weights = torch.load(file)
     57         print("dict len before:", len(pretrained_weights), end='; ')
     58         processed = {}

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
@toodef toodef added bug Something isn't working invalid This doesn't seem right labels May 20, 2020
@toodef toodef self-assigned this May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant