Skip to content

_pickle.UnpicklingError: invalid load key, 'v'. #2

@zweiPA

Description

@zweiPA

I run the demo code “python demo.py --config-file configs/GTR_TAO_Amodal_Expander_PasteNOcclude.yaml --video-input demo/input_video.mp4 --output demo/output.mp4 --opts MODEL.WEIGHTS models/Amodal_Expander_PnO_45k.pth”, and get such error "_pickle.UnpicklingError: invalid load key, 'v'."

[02/18 16:04:07 detectron2]: Arguments: Namespace(config_file='configs/GTR_TAO_Amodal_Expander_PasteNOcclude.yaml', webcam=None, cpu=False, video_input='demo/input_video.mp4', input=None, output='demo/output.mp4', confidence_threshold=0.5, opts=['MODEL.WEIGHTS', 'models/Amodal_Expander_PnO_45k.pth'])
WARNING [02/18 16:04:07 d2.config.compat]: Config 'configs/GTR_TAO_Amodal_Expander_PasteNOcclude.yaml' has no VERSION. Assuming it to be compatible with latest v2.
[02/18 16:04:10 d2.checkpoint.detection_checkpoint]: [DetectionCheckpointer] Loading from models/Amodal_Expander_PnO_45k.pth ...
[02/18 16:04:10 fvcore.common.checkpoint]: [Checkpointer] Loading from models/Amodal_Expander_PnO_45k.pth ...

It seem like the weight pth file is not align with model. how can i fixed such error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions