MhLiao / MaskTextSpotter

A PyTorch implementation of Mask TextSpotter
https://github.com/MhLiao/MaskTextSpotter
412 stars 94 forks source link

Code is breaking, when 'predictions' is None #58

Open vishaljainai opened 4 years ago

vishaljainai commented 4 years ago

if 'predictions' is None, we can return (None, None) https://github.com/MhLiao/MaskTextSpotter/blob/afe22795833dd93bc0b208de06b768ff1144eba9/tools/demo.py#L89