Visualize output of forward and select_action #744
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this does
lerobot/scripts/save_inference.py
to save outputs of the forward pass or select_action in a directory--inference-dir
tolerobot/scripts/visualize_dataset_html.py
to load these outputs and visualize themTODO:
How it was tested
Ran commands + manually visualized
How to checkout & try? (for the reviewer)
python lerobot/scripts/save_inference.py \ --dataset.repo_id=pepijn223/mobileso100_drive_forward6 \ --dataset.episodes='[0,1,2,4,10,11,12,20,21,22,30,31,32]' \ --policy.path=pepijn223/mobile_so100_test_100000 \ --output_dir=outputs/save_inference/pepijn223/mobileso100_drive_forward6/pepijn223/mobile_so100_test_100000 python lerobot/scripts/visualize_dataset_html.py \ --repo-id pepijn223/mobileso100_drive_forward6 \ --inference-dir outputs/save_inference/pepijn223/mobileso100_drive_forward6/pepijn223/mobile_so100_test_100000 \ --episodes 0 1 2 4 10 11 12 20 21 22 30 31 32