refactor: allow training on any supported data type#570
Open
aditya-neuraco wants to merge 1 commit into
Open
Conversation
Contributor
|
Consider updating changelogs/pending-changelog.md with a summary of this change for the release notes. This is optional and non-blocking. |
1 similar comment
Contributor
|
Consider updating changelogs/pending-changelog.md with a summary of this change for the release notes. This is optional and non-blocking. |
668a6d6 to
efe28e1
Compare
| ) | ||
|
|
||
| all_proprio = torch.cat(proprio_list, dim=-1) # (B, actual_state_dim) | ||
| if self.proprio_normalizer is None: |
Contributor
There was a problem hiding this comment.
I find it confusing, in line 357 it can be none
| Tuple of (images, masks) where images is a list of tensors | ||
| [B, C, H, W] per camera and masks is a list of [B] tensors. | ||
| """ | ||
| if DataType.RGB_IMAGES not in self.input_data_types: |
Contributor
There was a problem hiding this comment.
If rgb_images are not in the inputs, you can simulate a single all black image otherwise pi0 will raise an error
| Tuple of (images, masks) where images is a list of tensors | ||
| [B, C, H, W] per camera and masks is a list of [B] tensors. | ||
| """ | ||
| if DataType.RGB_IMAGES not in self.input_data_types: |
f0b645c to
ad865ad
Compare
ad865ad to
2807c3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Features
Items