Hi Ashray,
Your understanding of the MVP is correct: initialize a pretrained mug/banana episode once, keep the experiment alive between cell executions, and let the learner advance it while inspecting the observation and evidence. Each episode would show one object, with both mug and banana available in Monty’s memory of learned models as possibilities.
Responses to your other questions below:
- I think it’s a wonderful and useful idea to include an introductory graph plot of the mug and banana graphs. That would help give learners a concrete picture of what Monty already knows (and therefore an idea of what Monty is trying to match new evidence data against). Perhaps this cell can have the title: “the models Monty will compare its observations against” or something similar (I threw that idea in because it came to me, but I really want to leave as many of the implementation details to you as possible, so you feel the most freedom and excitement in building this project, so feel free to use that title if you like, and feel free to completely discard it and try something else if you think it’ll work better). I agree with you that we should save how those graphs are constructed for a separate follow-up lesson.
- I suggest targeting MuJoCo, using Monty’s current release (v0.57.0) for your work. That release removes Habitat support, as we’ve moved fully to MuJoCo going forward. See this post for context. And perhaps, if we’re lucky, that issue you were having with Habitat inside Jupyter won’t be a problem with MuJoCo.
- Yes, check out
run_episode_stepsin the same file for inspiration. It’s responsible for callingrun_stepand preserves the next actions, increments counters, and checks whether the episode should finish. Note that `run_episode_steps`itself is set up to run the whole episode straight through, so a Jupyter notebook wrapper would need extra code written to allow advancing one step at a time, then waiting for user feedback before the next step. - For displaying the evidence, I recommend playing around with
EvidenceGraphLM.evidence_for_each_graph(). It returns the object IDs and the maximum evidence score among the pose hypotheses for each object with a non-empty hypothesis space. This can be used to give us a straightforward mug-versus-banana comparison. I recommend labeling these as something like “evidence scores” to make it clear they’re not probabilities (a score of 10 does not mean a 10% chance of being correct). Perhaps teaching something very basic about how evidence in Monty works might make sense here. See this doc for more context on evidence in learning modules in Monty.- Since evidence is just a number in Monty, it could be a simple table that says something like ‘Hypothesis’ | ‘Evidence’ and underneath that the next row can be ‘mug’ | 3.2 and ‘banana’ | 9.8 (if 3.2 and 9.2 were their evidence scores, respectively).
- Before evidence accumulates, we can show something like “Awaiting observations.” But evidence starts at a count of 0, so just showing 0 in a table could also be enough.
- One important aside: some movements won’t change the evidence scores, because the sensor module can filter observations whose features haven’t changed enough. I’m not sure if you’ll run into that in development, but if you do, then it makes sense to have the notebook make that understandable rather than implying every click must change the scores.
- Yes, a separate Python process would be an acceptable fallback, if you run into a similar issue with MuJoCo stalling during setup inside Jupyter. The notebook could send an “advance one step” command to a process that keeps Monty and the simulator alive, then receive the observation and evidence to display.
Does everything above make sense? Please ask any clarifying questions you have.
With warmth,
Benji