Skip to content

Commit 6c9396f

Browse files
committed
version 0.1 pub
1 parent f823420 commit 6c9396f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/play.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
fps=15
44
header=0
5-
reconstruction=0
5+
reconstruction=1
66
save_mode=0
77
mode="agent_in_env"
88

@@ -37,4 +37,5 @@ while [ "$1" != "" ]; do
3737
shift
3838
done
3939

40-
python src/play.py hydra.run.dir=. hydra.output_subdir=null +mode="${mode}" +fps="${fps}" +header="${header}" +reconstruction="${reconstruction}" +save_mode="${save_mode}"
40+
python src/play.py hydra.run.dir=. hydra.output_subdir=null train +mode="${mode}" +fps="${fps}" +header="${header}" +reconstruction="${reconstruction}" +save_mode="${save_mode}"
41+
#python src/play.py env.train.id=homegrid-task hydra.run.dir=. hydra.output_subdir=null +mode="play_in_world_model" +fps="15" +header="1" +reconstruction="1" +save_mode="1"

src/play.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main(cfg: DictConfig):
4040
config=instantiate(cfg.world_model))
4141
actor_critic = ActorCritic(**cfg.actor_critic, act_vocab_size=test_env.num_actions)
4242
agent = Agent(tokenizer, world_model, actor_critic).to(device)
43-
agent.load(Path('/root/root/iris/outputs/2024-01-17/16-47-18/checkpoints/last.pt'), device)
43+
agent.load(Path('/root/iris/outputs/2024-01-20/14-49-13/checkpoints/last.pt'), device)
4444

4545
if cfg.mode == 'play_in_world_model':
4646
env = WorldModelEnv(tokenizer=agent.tokenizer, world_model=agent.world_model, device=device, env=env_fn())

0 commit comments

Comments
 (0)