I am getting this error when I try to run the pretrained hindsight-experience-replay

Traceback (most recent call last):
File “demo.py”, line 21, in
o_mean, o_std, g_mean, g_std, model = torch.load(model_path, map_location=lambda storage, loc: storage)
File “C:\Users\Student\anaconda3\envs\myenv\lib\site-packages\torch\serialization.py”, line 365, in load
f = open(f, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: “saved_models/‘FetchReach-v1’/model.pt”

The link of source is GitHub - TianhongDai/hindsight-experience-replay: This is the pytorch implementation of Hindsight Experience Replay (HER) - Experiment on all fetch robotic environments.

As the error message explains, it seems the specified file is not found and I guess you might have skipped this step, which asks you to download the files.

I have downloaded and saved it as mentioned but got the error.

In that case the additional characters around FetchReach-v1 might cause the issue or using a relative path from a wrong working directory.