cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
611 stars 198 forks source link

Fixed comparison to None. #149

Open lcerman opened 6 years ago

lcerman commented 6 years ago

The original code caused the following error:

Traceback (most recent call last): File "...\lib\site-packages\sloth\gui\labeltool.py", line 132, in onCurrentImageChanged if img == None: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()