TADT-python报错AttributeError: ‘_tkinter.tkapp‘ object has no attribute ‘setGeometry‘

目标跟踪:TADT-python

Target-Aware Deep Tracking (TADT)


问题描述:

AttributeError: ‘_tkinter.tkapp’ object has no attribute ‘setGeometry’

TADT-python报错AttributeError: ‘_tkinter.tkapp‘ object has no attribute ‘setGeometry‘_第1张图片

错误代码详情:

Traceback (most recent call last):
  File "demo_tadt.py", line 35, in <module>
    tracker.initialize_tadt(img_list[0], gt_bboxes[0])
  File "/home/scw4750/tracking/TADT-python/TADT-python/tadt_tracker.py", line 95, in initialize_tadt
    self.visualization(img, origin_target_location, 0)
  File "/home/scw4750/tracking/TADT-python/TADT-python/tadt_tracker.py", line 185, in visualization
    mngr.window.setGeometry(100,100,800,500)
  File "/home/scw4750/anaconda3/envs/TADT/lib/python3.7/tkinter/__init__.py", line 2101, in __getattr__
    return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'setGeometry'
*** Error in `python': corrupted size vs. prev_size: 0x0000556a10ad18b0 ***
Aborted (core dumped)

解决方案:

tadt_tracker.py: line184
原始:

        mngr.window.setGeometry(100,100,800,500)

修改为:

        mngr.window.setGeometry=(100,100,800,500)

你可能感兴趣的:(目标跟踪,pytorch,pytorch,深度学习,神经网络,数据挖掘,机器学习)