-
Notifications
You must be signed in to change notification settings - Fork 233
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
Rendering to the HTML doesn't work #2
Comments
Some update: |
Thanks for this feedback! Agreed, we should at least give a more informative error if batched trajectories are sent to the visualizer. We'll fix that and resolve this issue when it's posted. Supporting visualizing batches of agents ( such as https://spectrum.ieee.org/image/MzMwNDQ2Ng.jpeg ) would be great too, but we would have to verify three.js can handle large scenes. |
Very cool! Using pytorch, does each step have to copy back to CPU? Can pytorch access jax datastructures? |
` def torch_to_jax(tensor): I found a way. If use this code it works at least 10% faster compared to the CPU version via numpy. |
Cool trick! If your project has a url, feel free to share it. We may eventually have a "Projects using Brax" section in the README. Thanks for sharing! |
sounds good. |
OK, this is addressed in 170405e - thanks Denys. |
This bug still is present. Rendering doesn't work with batched environments, even when it's a single env batch. |
Thanks @ViktorM for pointing it out! We still don't support rendering batches, but the RuntimeError on invalid shapes was accidentally removed. Added it back |
When I try to play saved html visualization on my local computer I always get this error in HTML:
Uncaught TypeError: Cannot read property '0' of undefined
at demo.html:191
at Array.map ()
at demo.html:191
at Array.forEach ()
at createAnimationClip (demo.html:189)
at demo.html:314
Everything works fine in the google colab.
The text was updated successfully, but these errors were encountered: