osbm commited on
Commit
8baa5aa
·
1 Parent(s): 7694c6b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -2
README.md CHANGED
@@ -30,8 +30,17 @@ TODO: Add your code
30
 
31
 
32
  ```python
33
- from stable_baselines3 import ...
34
  from huggingface_sb3 import load_from_hub
35
 
36
- ...
 
 
 
 
 
 
 
 
 
37
  ```
 
30
 
31
 
32
  ```python
33
+ from stable_baselines3 import PPO
34
  from huggingface_sb3 import load_from_hub
35
 
36
+ repo_id = "osbm/ppo-LunarLander-v2-2"
37
+ filename = "ppo-LunarLander-v2.zip"
38
+ custom_objects = {
39
+ "learning_rate": 0.0,
40
+ "lr_schedule": lambda _: 0.0,
41
+ "clip_range": lambda _: 0.0,
42
+ }
43
+
44
+ checkpoint = load_from_hub(repo_id, filename)
45
+ model = PPO.load(checkpoint, custom_objects=custom_objects, print_system_info=True)
46
  ```