-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video recording utilities #1499
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also remove the SMARTS
submodule included in this branch.
@AisenGinn Please bug people to review this so it does not sit too long. |
…tation to clarify each path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One set of issues to figure out. Good Work!
smarts/env/wrappers/gif_recorder.py
Outdated
try: | ||
from moviepy.editor import ImageClip, ImageSequenceClip | ||
except (ImportError, ModuleNotFoundError): | ||
print(sys.exc_info()) | ||
print( | ||
"You may not have installed the [gym] dependencies required to capture the video. Install them first using the command `pip install -e .[gym]` at the source directory." | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my last concern here is that this try/catch
swallows the import error. I think we still want to raise an error here. Aside from that we should not expect that the user is working from a dev platform.
try: | |
from moviepy.editor import ImageClip, ImageSequenceClip | |
except (ImportError, ModuleNotFoundError): | |
print(sys.exc_info()) | |
print( | |
"You may not have installed the [gym] dependencies required to capture the video. Install them first using the command `pip install -e .[gym]` at the source directory." | |
) | |
try: | |
from moviepy.editor import ImageClip, ImageSequenceClip | |
except (ImportError, ModuleNotFoundError): | |
logging.warning(sys.exc_info()) | |
logging.warning( | |
"You may not have installed the [gym] dependencies required to capture the video. Install them first with the `smarts[gym]` extras." | |
) | |
raise |
…develop update branch to follow the newest develop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
Added gif_recorder.py and recorder_wrapper.py into smarts.env.wrappers folder for video recording function.