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?
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:
Are the current model files compatible with recent PyTorch versions?