0ssamaak0 / DLTA-AI

Data Labeling, Tracking and Annotation with AI
GNU General Public License v3.0
314 stars 39 forks source link

QT Error when running App #47

Closed bendreality closed 10 months ago

bendreality commented 1 year ago

Got this Error:

YOLOv8n-seg summary (fused): 195 layers, 3404320 parameters, 0 gradients, 12.6 GFLOPs
Traceback (most recent call last):
  File "C:\Users\xxxx\Documents\DLTA-AI\DLTA_AI_app\labelme\widgets\canvas.py", line 675, in paintEvent
    p.translate(self.offsetToCenter())
  File "C:\Users\xxxx\Documents\DLTA-AI\DLTA_AI_app\labelme\widgets\canvas.py", line 822, in offsetToCenter
    return QtCore.QPoint(x, y)
TypeError: arguments did not match any overloaded call:
  QPoint(): too many arguments
  QPoint(xpos: int, ypos: int): argument 1 has unexpected type 'float'
  QPoint(a0: QPoint): argument 1 has unexpected type 'float'

I'm getting a lot of these Qt type errors. If I fix them by converting the float to int the app works.

I fixed the error from above for me by changing ..\DLTA-AI\DLTA_AI_app\labelme\widgets\canvas.py line 822 to

return QtCore.QPoint(int(x), int(y))

I'm working remote on the machine where the software is installed and using a Widescreen monitor. Maybe that's why the calculations produce floats.

Hope it helps, best wishes and thanks for the tool. :)

0ssamaak0 commented 1 year ago

Thanks a lot, we will check all of these and fix them

0ssamaak0 commented 1 year ago

can u provide me the following: 1- how did u install DLTA-AI, Through pip or by downloading the release 2- Python Version 3- Pytorch Version

Thank you again