Skip to content

Error: Loading state_dict #11

Open

Description

@raniasyed

C:\Users\Rania\Documents\Human-Parsing-PyTorch>python evaluate_multi.py
Traceback (most recent call last):
File "C:\Users\Rania\Documents\Human-Parsing-PyTorch\evaluate_multi.py", line 254, in
main()
File "C:\Users\Rania\Documents\Human-Parsing-PyTorch\evaluate_multi.py", line 221, in main
model.load_state_dict(state_dict)
File "C:\Users\Rania\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\torch\nn\modules\module.py", line 2189, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ResNet:

I am unable to resolve this error since the new version of the LIP model with all the weights is not available now. Please help me out.

Activity

  1. SharmaVibhor commented on Jul 23, 2024

    @SharmaVibhor

    I think i am facing similar issue by not having the latest model. Did you solve this ?

  2. tjpulkl commented on Nov 19, 2024

    @tjpulkl
    Owner

    Hi, I have tested the trained model, there is no problem. Please ensure that you correctly use the trained model download from baidu which has the file name of "LIP_epoch_149.pth", not the imagenet pretrained model's file.

  3. tjpulkl commented on Nov 19, 2024

    @tjpulkl
    Owner

    Please download the trained model for LIP dataset from baidu drive and put it into snapshots folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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