observation_buffer.py has a copy error for a small percentage#32
Open
luoye2333 wants to merge 3 commits intoescontra:mainfrom
Open
observation_buffer.py has a copy error for a small percentage#32luoye2333 wants to merge 3 commits intoescontra:mainfrom
luoye2333 wants to merge 3 commits intoescontra:mainfrom
Conversation
Author
|
Found that it is already fixed in Isaaclab circular_buffer.py. Ignore this PR. |
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.
Hello authors in ETH, great thanks for your excellent works! This repo has helped me very very much in my study and work. Recently I found a small error when i try to write a different implementation of the observation_buffer.py.
We should clone first before writing into the buffer, or we have overwrite risks for a small part (less than 1% in my test) of the data at the end of the buffer.
The percentage of the error data is very small so it does not affect the RL training at all. But the added
.clone()will increase the time consumption to 2 times of the original way, so i recommend using a circular implementation. We just move the pointer when write a new observation so that we do not need to move the whole buffer. Refer to the test script in observation_buffer_3d_circular.py for testing.The test results are as follows:
Hoping for your reply!