allenai / allenact

An open source framework for research in Embodied-AI from AI2.
https://www.allenact.org
Other
308 stars 49 forks source link

Visualize a policy from a checkpoint #343

Closed hai-h-nguyen closed 2 years ago

hai-h-nguyen commented 2 years ago

Hello,

Is it supported to visualize a trained policy from a checkpoint? If yes, how would I do that? I saw there was a tutorial on how to evaluate a checkpoint, but I want to visually inspect the learned policy too.

Lucaweihs commented 2 years ago

Hi @hai-h-nguyen,

This definitely should be possible depending on the type of visualization you're looking for. A few quick questions:

  1. What environment are you training on?
  2. What type of visualizations do you want? E.g.
    • Do you want to run your model on a single task in a loop just to get a sense of what it's doing?
    • Do you want to run your model on a whole bunch of episodes, save the results (e.g. to tensorboard or to videos on disk), and then look through them after the fact?

Some initial pointers:

hai-h-nguyen commented 2 years ago

Hi, thanks for a quick reply.

  1. I am training in my custom environments.
  2. I am looking for the first option - to get a sense of what it's doing over a number of episodes. I also wish to make a video later but I can just use a screen recording software for that purpose.
  3. Thanks I will look into those pointers first.
hai-h-nguyen commented 2 years ago

Thanks, I am able to visualize the policy using InferenceAgent.