Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update brush.py
Browse files Browse the repository at this point in the history
  • Loading branch information
makseq authored Mar 23, 2023
1 parent 982067c commit ed0bda4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion label_studio_converter/brush.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@
from collections import defaultdict
from itertools import groupby

logger = logging.getLogger(__name__)

try:
import pycocotools.mask
except ImportError:
pycocotools_imported = False
logger.warning('pycocotools.mask is not imported, BrushLabels export is not working,'
'you can try to install it manually: pip install pycocotools')
else:
pycocotools_imported = True


logger = logging.getLogger(__name__)



### Brush Export ###
Expand Down

0 comments on commit ed0bda4

Please sign in to comment.