hanskrupakar / COCO-Style-Dataset-Generator-GUI

A simple GUI-based COCO-style JSON Polygon masks' annotation tool to facilitate quick and efficient crowd-sourced generation of annotation masks and bounding boxes. Optionally, one could choose to use a pretrained Mask RCNN model to come up with initial segmentations.
Apache License 2.0
144 stars 31 forks source link

AttributeError: 'COCO_dataset_generator' object has no attribute 'r_x' #10

Closed eyildiz-ugoe closed 5 years ago

eyildiz-ugoe commented 5 years ago
Traceback (most recent call last):
  File "/home/usr/.local/lib/python3.6/site-packages/matplotlib/cbook/__init__.py", line 215, in process
    func(*args, **kwargs)
  File "segment.py", line 332, in onclick_release
    elif self.r_x and np.abs(event.xdata - self.r_x)>10 and np.abs(event.ydata - self.r_y)>10: # 10 pixels limit for rectangle creation
AttributeError: 'COCO_dataset_generator' object has no attribute 'r_x'

When clicked, this is printed from time to image.

hanskrupakar commented 5 years ago

This error was caused because of out-of-screen or illegal clicks resulting in None objects. I added a fix with the latest commit. Apologies for the delay, I've been focused on other things. Let me know if you still get the error.