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: App crashes while loading images on intel mac #31

Closed
Smikha opened this issue Apr 15, 2023 · 4 comments · Fixed by #33
Closed

bug: App crashes while loading images on intel mac #31

Smikha opened this issue Apr 15, 2023 · 4 comments · Fixed by #33
Labels
bug Something isn't working

Comments

@Smikha
Copy link

Smikha commented Apr 15, 2023

Steps to reproduce:

  • git clone repo
  • setup venv
  • install anylabeling and requirements.txt
  • run anylabeling

When attempting to import image files, the app crashes with the following error:

  File "/Users/sm/Documents/repos/anylabeling/.venv/lib/python3.10/site-packages/anylabeling/views/labeling/widgets/canvas.py", line 263, in mouseMoveEvent
    pos = self.transform_pos(ev.localPos())
  File "/Users/sm/Documents/repos/anylabeling/.venv/lib/python3.10/site-packages/anylabeling/views/labeling/widgets/canvas.py", line 899, in transform_pos
    return point / self.scale - self.offset_to_center()
  File "/Users/sm/Documents/repos/anylabeling/.venv/lib/python3.10/site-packages/anylabeling/views/labeling/widgets/canvas.py", line 911, in offset_to_center
    return QtCore.QPoint(x, y)
TypeError: arguments did not match any overloaded call:
  QPoint(): too many arguments
  QPoint(int, int): argument 1 has unexpected type 'float'
  QPoint(QPoint): argument 1 has unexpected type 'float'

I've tried to modify the offset_to_center file so that it passes int to the QPoint function, but I still receive the same error.

@vietanhdev
Copy link
Owner

Can you try to install it by single command?

pip install anylabeling

Tell me if there is still an error. Thank you.

@vietanhdev
Copy link
Owner

Maybe this bug is related to Python 3.10. wkentaro/labelme#1020
Can you try Python 3.8 and 3.9?

@vietanhdev
Copy link
Owner

Fixed this issue on #33. Please pull the latest code or install v0.2.4 from Pypi.
Thank you for your bug report.

@vietanhdev vietanhdev added the bug Something isn't working label Apr 15, 2023
@ryouchinsa
Copy link

Thanks for your great tool AnyLabeling.

RectLabel is an offline image annotation tool for object detection and segmentation.
Although this is not an open source program, you can label polygons using Segment Anything models.

sam_polygon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants