theegnas commited on
Commit
65f47d9
1 Parent(s): f42511c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -2
README.md CHANGED
@@ -30,8 +30,18 @@ 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
+ repo_id = "theegnas/ppo-LunarLander-v2" # The repo_id
36
+ filename = "ppo-LunarLander-v2.zip" # The model filename.zip
37
+
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
 
 
47
  ```