Skip to content

load_from_checkpoint function returning error - AttributeError: Can't get attribute '_gpus_arg_default' #6964

@psbreuning

Description

@psbreuning

I am getting this error when trying to load model from checkpoint:

model = MyModel.load_from_checkpoint(path/to/model/Google Drive)

AttributeError: Can't get attribute '_gpus_arg_default' on <module 'pytorch_lightning.utilities.argparse' from '/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/argparse.py'>

This is happening on Google Colab. This was working for me before, but suddenly I get this error with the same models that I have loaded previously without issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedOpen to be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions