JiemingYou commited on
Commit
03909e2
·
1 Parent(s): 648fcd0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -30,8 +30,19 @@ 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 huggingface_sb3 import load_from_hub
34
 
35
+ custom_objects = {
36
+ "learning_rate": 0.0,
37
+ "lr_schedule": lambda _: 0.0,
38
+ "clip_range": lambda _: 0.0,
39
+ }
40
+
41
+ checkpoint = load_from_hub(
42
+ "JiemingYou/ppo-LunarLander-v2",
43
+ "http:// ppo-LunarLander-v2-test.zip"
44
+ )
45
+ model = PPO.load(checkpoint, custom_objects=custom_objects, print_system_info=True)
46
+
47
  ...
48
  ```