Views
No views yet
1from stable_baselines3 import ...
2from huggingface_sb3 import load_from_hub
3
4from huggingface_sb3 import load_from_hub
5repo_id = "surya07/drl-course-unit-01-lunar-lander-v2" # The repo_id
6filename = "ppo-LunarLander-v2.zip" # The model filename.zip
7
8
9custom_objects = {
10 "learning_rate": 0.0,
11 "lr_schedule": lambda _: 0.0,
12 "clip_range": lambda _: 0.0,
13}
14
15checkpoint = load_from_hub(repo_id, filename)
16model = PPO.load(checkpoint, custom_objects=custom_objects, print_system_info=True)
17
18...