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