Skip to content

TypeError: __init__() missing 1 required positional argument: 'hparams' #35

@tanjary21

Description

@tanjary21

Hi there!

I've been trying to run the code on colab on MOT17 dataset. I followed all the instructions and I managed to get the network to train.

The 'python scripts/evaluate.py' command seems to fail though. This is the error I get:

WARNING - evaluate - No observers have been added to this run
INFO - evaluate - Running command 'main'
INFO - evaluate - Started
ERROR - evaluate - Failed after 0:00:00!
Traceback (most recent calls WITHOUT Sacred internals):
File "scripts/evaluate.py", line 34, in main
model = MOTNeuralSolver.load_from_checkpoint(checkpoint_path=_config['ckpt_path'] if osp.exists(_config['ckpt_path']) else osp.join(OUTPUT_PATH, _config['ckpt_path']))
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/core/saving.py", line 156, in load_from_checkpoint
model = cls._load_model_state(checkpoint, strict=strict, kwargs)
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/core/saving.py", line 198, in _load_model_state
model = cls(
_cls_kwargs)
TypeError: init() missing 1 required positional argument: 'hparams'

Any ideas as to how to fix this? Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions