Views
No views yet
1from stable_baselines3 import PPO
2from huggingface_sb3 import load_from_hub
3
4repo_id = "osbm/ppo-LunarLander-v2-2"
5filename = "ppo-LunarLander-v2.zip"
6custom_objects = {
7 "learning_rate": 0.0,
8 "lr_schedule": lambda _: 0.0,
9 "clip_range": lambda _: 0.0,
10}
11
12checkpoint = load_from_hub(repo_id, filename)
13model = PPO.load(checkpoint, custom_objects=custom_objects, print_system_info=True)