DerrickXuNu / OpenCOOD

[ICRA 2022] An opensource framework for cooperative detection. Official implementation for OPV2V.
https://mobility-lab.seas.ucla.edu/opv2v/
Other
663 stars 99 forks source link

Fail to reproduce inference.py #74

Closed CSwakeQAQ closed 1 year ago

CSwakeQAQ commented 1 year ago

Thank you very much for developing the openCOOD.When I reproduce opencood.I run “python opencood/tools/inference.py - model_dir ${CHECKPOINT_FOLDER} - fusion_method ${FUSION_STRATEGY} --show_sequence” ,and I met with the following error:

[Open3D WARNING] GLFW Error: X11: The DISPLAY environment variable is missing
[Open3D WARNING] Failed to initialize GLFW
Traceback (most recent call last):
  File "opencood/tools/inference.py", line 203, in <module>
    main()
  File "opencood/tools/inference.py", line 86, in main
    vis.get_render_option().background_color = [0.05, 0.05, 0.05]
AttributeError: 'NoneType' object has no attribute 'background_color'

I guess whether this error is caused by my installation of the wrong version of open3d.I have tried to the lower version of open3d,but the error still hasn't been solved.Therefore, I would like to ask how to solve this error.If it is because of the version of open3d, could you please tell me the specific version number of open3d you adopted?

IndigoChildren commented 1 year ago

Maybe You should project the visulized image to remote servers

DerrickXuNu commented 1 year ago

It could be the graphic card issue as well. Can you run it without using --show_sequence flag?

CSwakeQAQ commented 1 year ago

It could be the graphic card issue as well. Can you run it without using --show_sequence flag?

Thank you for your reply.I have checked the evaluation works well without using --show_sequence flag.Should I switch to another devices to test whether it can work on other graphic cards?

DerrickXuNu commented 1 year ago

Yes, please try that

CSwakeQAQ commented 1 year ago

Maybe You should project the visulized image to remote servers

I do use remote servers to run this code.And i didn't understand the meaning of "project the visulized image to remote servers".Could you give me some further explannation about projecting the visulized image to remote servers.

CSwakeQAQ commented 1 year ago

Yes, please try that

I noted that setting this parameter will create a window to visualize,but i run this on remote servers.I wonder whether that is the reason why i fail to evaluate with --show_sequence flag?

DerrickXuNu commented 1 year ago

yes, if you are run this on remote server it will show such error, this happens to me before.

CSwakeQAQ commented 1 year ago

yes, if you are run this on remote server it will show such error, this happens to me before.

Is there a way to run this on remote server or I can only run with --show_sequence flag on Local host?

Sun1boy commented 11 months ago

How did you solve it?

CSwakeQAQ commented 11 months ago

How did you solve it? Just do not run this on remote server.Try on local host.