habitat-lab icon indicating copy to clipboard operation
habitat-lab copied to clipboard

Using PoseExtractor in habitat-lab

Open smorad opened this issue 2 years ago • 1 comments

❓ Questions and Help

I'm currently trying to pretrain a CNN using a PoseExtractor, then train an RL agent using said CNN in habitat-lab. Unfortunately, it seems like PoseExtractor doesn't have habitat-lab integration. Ideally, I'd be able to pass my nice habitat-lab configs specifying train/test split, device, sensor setup, agent height, etc to a PoseExtractor instance.

I was wondering if there was a way to do this.

smorad avatar May 23 '22 14:05 smorad

Hey, @smorad. Yeah, this sounds like an additional feature. You'd probably want to fork the code and make a new tool for this. Instead of extracting poses from a Simulator instance in habitat-sim, I'd instantiate the Task or Env and then make calls to the underlying Simulator instance. Alternatively you could modify the PoseExtractor to take an existing instance of the Simulator object and then use the Task/Env to instantiate an episode from your dataset and pass it in.

aclegg3 avatar May 23 '22 20:05 aclegg3