You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saving Problem
Hi, I am very excited that stable baselines has a tf2 version, which could make me much easier to develop custom policies.
I have tried a small demo of PPO, it seems works well. After learning, i found that save method is quite different from tf1 version stable baselines and it seems not implemented yet.
If I want to implement it, should I just implement the save/load method in BasePolicy class shown as below, and there is nothing else in the whole model need to be saved?
classBasePolicy(Model):
""" The base policy object :param observation_space: (Gym Space) The observation space of the environment :param action_space: (Gym Space) The action space of the environment """def__init__(self, observation_space, action_space):
super(BasePolicy, self).__init__()
self.observation_space=observation_spaceself.action_space=action_spacedefsave(self, path):
""" Save model to a given location. :param path: (str) """raiseNotImplementedError()
defload(self, path):
""" Load saved model from path. :param path: (str) """raiseNotImplementedError()
Hoping your guidance with my best wishes.
The text was updated successfully, but these errors were encountered:
Hello,
As mentioned in the README, this is an experimental version.
After discussion with the other maintainers, we decided to go for pytorch instead: hill-a/stable-baselines#733
Hello,
As mentioned in the README, this is an experimental version.
After discussion with the other maintainers, we decided to go for pytorch instead: hill-a/stable-baselines#733
Saving Problem
Hi, I am very excited that stable baselines has a tf2 version, which could make me much easier to develop custom policies.
I have tried a small demo of PPO, it seems works well. After learning, i found that save method is quite different from tf1 version stable baselines and it seems not implemented yet.
If I want to implement it, should I just implement the save/load method in BasePolicy class shown as below, and there is nothing else in the whole model need to be saved?
Hoping your guidance with my best wishes.
The text was updated successfully, but these errors were encountered: