Skip to content

SkinExtractionFaceParsing torch model issue #84

Open
@aytekin827

Description

@aytekin827

hello,
first of all it's really great work for rPPG task.
thank you so much!

now I'm on following the pipeline which is pyVHR library

I got this error message from "skin_extraction_methods.py" when initializing SkinExtractionFaceParsing class object.


File "C:\Users\ok\anaconda3\envs\pyvhr\lib\site-packages\pyVHR\extraction\skin_extraction_methods.py", line 72, in init
self.net.load_state_dict(torch.load(save_pth, map_location=torch.device('cpu')))
File "C:\Users\ok\anaconda3\envs\pyvhr\lib\site-packages\torch\serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\ok\anaconda3\envs\pyvhr\lib\site-packages\torch\serialization.py", line 777, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\x0a'.

what I tried for trouble shooting

  1. check path whether it is right
  2. re-downloaded "19999_iter.pth" file again

if anyone has same problem could you give some way to deal with this problem?

thank you so much

Activity

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions