Skip to content

Unable to load FairFace PyTorch model: _pickle.UnpicklingError: could not find MARK (PyTorch 2.x, macOS) #35

@lpredster

Description

@lpredster

I am trying to use the latest FairFace PyTorch model weights (downloaded from the official links in the README) on macOS with Python version: 3.10.20 and PyTorch version: 2.11.0, but I get the following error:

model.load_state_dict(torch.load(model_path, map_location=device, weights_only=False))
_pickle.UnpicklingError: could not find MARK

Are the current model files compatible with recent PyTorch versions?

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