Original file is located at https://colab.research.google.com/github/huggingface/deep-rl-class/blob/main/notebooks/unit6/unit6.ipynb

Unit 6: Advantage Actor Critic (A2C) using Robotics Simulations with Panda-Gym ๐Ÿค–

To make the video appear, it is necessary add the following code after importing VecVideoRecorder but before calling package_to_hub:

from stable_baselines3.common.vec_env import VecVideoRecorder

def _vec_video_recorder__getattr(self, name):
    if name == "video_recorder":
        return self     
    if name == "path":
        return self.video_path  
    if _orig_vec_video_recorder_getattr is None:
        raise AttributeError(name)
    return _orig_vec_video_recorder_getattr(self, name)

_orig_vec_video_recorder_getattr = getattr(VecVideoRecorder, "__getattr__", None)
setattr(VecVideoRecorder, "__getattr__", _vec_video_recorder__getattr)


Downloads last month
5
Video Preview
loading

Evaluation results