Traceback (most recent call last):


 "predict.py", line 129, in <module>

result = mask_to_image(mask)


 "predict.py", line 97, in mask_to_image

return Image.fromarray((mask * 255).astype(np.uint8))


 "C:\Users\lyyly\Anaconda3\envs\Pregnant\lib\site-packages\PIL\Image.py", line 2751, in fromarray

raise TypeError("Cannot handle this data type: %s, %s" % typekey) from e
TypeError: Cannot handle this data type: (1, 1, 768), |u1

Traceback (most recent call last):


 "D:\Apps\Python\Anaconda3\lib\site-packages\PyInstaller\depend\bindepend.py", line 721, in getImports

return _getImports_pe(pth)


 "D:\Apps\Python\Anaconda3\lib\site-packages\PyInstaller\depend\bindepend.py", line 109, in _getImports_pe

import_dllnames_only=True,
TypeError: parse_data_directories() got an unexpected keyword argument 'forwarded_exports_only'
