Skip to content

Cannot load off-policy trained agents #22

@DavideZFC

Description

@DavideZFC

I have tried to load the trained agent with these lines

from stable_baselines3 import SAC
agent = SAC.load("BipedalWalker-v3.zip")

Where of course the file "BipedalWalker-v3.zip" comes from here.

I get this error:
AttributeError: Can't get attribute 'TrainFreq' on <module 'stable_baselines3.common.type_aliases' from 'C:\\Users\\Davide\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\stable_baselines3\\common\\type_aliases.py'>

Like it is incompatible with some file of stable_baselines_3. Note that the same problem holds for other off-policy algorithms (like DDPG) but not for on-policy ones (like PPO).

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