xingyizhou / CenterTrack

Simultaneous object detection and tracking using center points.
MIT License
2.39k stars 526 forks source link

IA__gtk_widget_style_get: assertion 'GTK_IS_WIDGET (widget)' failed #117

Open Timothy2015 opened 4 years ago

Timothy2015 commented 4 years ago

# When run demo.py python demo.py tracking,ddd --load_model ../models/nuScenes_3Dtracking.pth --dataset nuscenes --pre_hm --track_thresh 0.1 --demo ../videos/nuscenes_mini.mp4 --test_focal_length 633

# There is a bug: …… (python:29315): Gtk-CRITICAL : IA__gtk_widget_style_get: assertion 'GTK_IS_WIDGET (widget)' failed QWidget::setMinimumSize: (bird_pred/CvWindow) The largest allowed size is (16777215,16777215) (python:29315): Gtk-CRITICAL : IA__gtk_widget_style_get: assertion 'GTK_IS_WIDGET (widget)' failed …… (python:29315): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion 'GTK_IS_WIDGET (widget)' failed frame 40 |tot 0.064s |load 0.000s |pre 0.033s |net 0.025s |dec 0.002s |post 0.004s |merge 0.000s |display 0.027s |

Hello,did you have the same problem? The demo.py can finally be executed, but I cannot see a normal "display window".

xingyizhou commented 4 years ago

I haven't met this.

but I cannot see a normal "display window".

Are you running the script on via ssh or on a desktop? We use cv2.imshow to display the window. It doesn't work when you are using ssh.

Timothy2015 commented 4 years ago

@xingyizhou Thanks for you reply. I ran the script on Ubuntu16.04 without using ssh. I updated the Qt style by the following conmands: