Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Fix] fix csViewer crashes with pyqt 1.15+ #186

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

simonwu53
Copy link

Description

When I tried to run the viewer for the dataset, the script immediately crashed when loading any image after selecting the city and annotation type. So I posted this update in case others also want to run the visualizer.

Details

Command

CITYSCAPES_DATASET=/Volumes/Storage/Datasets/Cityscapes csViewer

Errors

TypeError: arguments did not match any overloaded call:
  QRect(): too many arguments
  QRect(aleft: int, atop: int, awidth: int, aheight: int): argument 3 has unexpected type 'float'
  QRect(atopLeft: QPoint, abottomRight: QPoint): argument 1 has unexpected type 'int'
  QRect(atopLeft: QPoint, asize: QSize): argument 1 has unexpected type 'int'
  QRect(a0: QRect): argument 1 has unexpected type 'int'
TypeError: arguments did not match any overloaded call:
  QImage(): too many arguments
  QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: Optional[bytes], width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(xpm: List[str]): argument 1 has unexpected type 'float'
  QImage(fileName: Optional[str], format: Optional[str] = None): argument 1 has unexpected type 'float'
  QImage(a0: QImage): argument 1 has unexpected type 'float'
  QImage(variant: Any): too many arguments

System Information

  • OS: macOS Sequoia 15.0
  • Python: 3.10.15
  • Packages:
    • PyQt5: 5.15.11
    • PyQt5-Qt5: 5.15.15
    • PyQt5_sip: 12.15.0
    • cityscapesScripts: 2.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant