Skip to content

The robot sample program has a bug #43

@yolo-hyl

Description

@yolo-hyl

I run the

python agents/robot_traj/app.py

but the Gradio's website does not have any output.
The console terminal output is

expected bytes, NoneType found

I try to print the model's output, find this:

Mark 6 at [251,92], Mark 8 at [250,22] should be moved, and their future positions are:

"Mark 6": "[[252,90],[251,87],[247,86],[241,87],[232,89],[221,95],[211,101],[202,107]]"

"Mark 8": "[[251,20],[250,17],[247,16],[240,18],[230,23],[218,32],[206,43],[196,54]]"

The analysis is correct.
Debug found that the error appeared in robot_traj/utils/visualier.py

Traceback (most recent call last): File "/home/user/nlp/Magma/agents/robot_traj/test.py", line 52, in <module> vis.visualize(video, overlay_traces, overlay_visibility) File "/home/user/nlp/Magma/agents/robot_traj/utils/visualizer.py", line 127, in visualize self.save_video(res_video, filename=filename, writer=writer, step=step) File "/home/user/nlp/Magma/agents/robot_traj/utils/visualizer.py", line 151, in save_video video_writer.append_data(frame) File "/home/user/.conda/envs/magma/lib/python3.10/site-packages/imageio/v2.py", line 226, in append_data return self.instance.write(im, **self.write_args) File "/home/user/.conda/envs/magma/lib/python3.10/site-packages/imageio/plugins/pyav.py", line 674, in write self.init_video_stream(codec, fps=fps, pixel_format=out_pixel_format) File "/home/user/.conda/envs/magma/lib/python3.10/site-packages/imageio/plugins/pyav.py", line 886, in init_video_stream stream = self._container.add_stream(codec, fps) File "av/container/output.pyx", line 61, in av.container.output.OutputContainer.add_stream File "av/codec/codec.pyx", line 86, in av.codec.codec.Codec.__cinit__ TypeError: expected bytes, NoneType found
How to solve this problem? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions