Skip to content

Commit

Permalink
update experiment train evals
Browse files Browse the repository at this point in the history
  • Loading branch information
BY571 committed Sep 27, 2024
1 parent 64328b7 commit 52ef271
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion experiments/2wheeler/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from environments import make_env
from src.agents import get_agent
from src.utils import login, setup_check , logout
from src.utils import login, logout, setup_check


@hydra.main(version_base=None, config_path=project_root + "/conf", config_name="config")
Expand Down
2 changes: 1 addition & 1 deletion experiments/roboarm/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def run(cfg: DictConfig) -> None:
_ = input("Press Enter to start evaluation...")
try:
for e in tqdm(range(eval_episodes), desc="Evaluation"):
td = env.reset(env.get_reset_tensordict())
td = env.reset()
done = td.get("done", False)
truncated = td.get("truncated", False)
ep_return = 0
Expand Down
2 changes: 1 addition & 1 deletion experiments/roboarm/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run(cfg: DictConfig) -> None:
train_episodes = cfg.episodes
max_episode_steps = cfg.env.max_episode_steps

print("Start training...")
print("Start training...")
quit = False
try:
for e in tqdm(range(train_episodes), desc="Training"):
Expand Down

0 comments on commit 52ef271

Please sign in to comment.