Michele Milesi commited on
Commit
df7e1ca
1 Parent(s): e184661

feat: update

Browse files
Files changed (2) hide show
  1. agent-dreamer_v3.py +2 -0
  2. agent-ppo.py +3 -2
agent-dreamer_v3.py CHANGED
@@ -26,6 +26,8 @@ def main(cfg_path: str, checkpoint_path: str, test=False):
26
  # Override configs for evaluation
27
  # You do not need to capture the video since you are submitting the agent and the video is recorded by DIAMBRA
28
  cfg.env.capture_video = False
 
 
29
 
30
  # Instantiate Fabric
31
  # You must use the same precision and plugins used for training.
 
26
  # Override configs for evaluation
27
  # You do not need to capture the video since you are submitting the agent and the video is recorded by DIAMBRA
28
  cfg.env.capture_video = False
29
+ # Only one environment is used for evaluation
30
+ cfg.env.num_envs = 1
31
 
32
  # Instantiate Fabric
33
  # You must use the same precision and plugins used for training.
agent-ppo.py CHANGED
@@ -23,8 +23,9 @@ def main(cfg_path: str, checkpoint_path: str, test=False):
23
  print("Config parameters = ", json.dumps(cfg, sort_keys=True, indent=4))
24
 
25
  # Override configs for evaluation
26
- if not test:
27
- cfg.env.capture_video = False
 
28
  cfg.env.num_envs = 1
29
 
30
  # Instantiate Fabric
 
23
  print("Config parameters = ", json.dumps(cfg, sort_keys=True, indent=4))
24
 
25
  # Override configs for evaluation
26
+ # You do not need to capture the video since you are submitting the agent and the video is recorded by DIAMBRA
27
+ cfg.env.capture_video = False
28
+ # Only one environment is used for evaluation
29
  cfg.env.num_envs = 1
30
 
31
  # Instantiate Fabric