вот код:
from pixellib.instance import instance_segmentation
segment_image = instance_segmentation()
segment_image.load_model("mask_rcnn_coco.h5")
segment_image.segmentImage(image_path="1.jpg", output_image_name="output.jpg")
когда я его запускаю выводиться ошибка
C:\Users\иван\Desktop\нейросеть\vee\lib\site-packages\pixellib\instance\utils.py:566: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar. (This may have returned Python scalars in past versions.
mask = np.where(mask >= threshold, 1, 0).astype(np.bool)
Traceback (most recent call last):
File "C:\Users\иван\Desktop\нейросеть\начало\test.py", line 5, in <module>
segment_image.segmentImage(image_path="1.jpg", output_image_name="output.jpg")
File "C:\Users\иван\Desktop\нейросеть\vee\lib\site-packages\pixellib\instance\__init__.py", line 195, in segmentImage
results = self.model.detect([new_img])
File "C:\Users\иван\Desktop\нейросеть\vee\lib\site-packages\pixellib\instance\mask_rcnn.py", line 2469, in detect
self.unmold_detections(detections[i], mrcnn_mask[i],
File "C:\Users\иван\Desktop\нейросеть\vee\lib\site-packages\pixellib\instance\mask_rcnn.py", line 2416, in unmold_detections
full_mask = utils.unmold_mask(masks[i], boxes[i], original_image_shape)
File "C:\Users\иван\Desktop\нейросеть\vee\lib\site-packages\pixellib\instance\utils.py", line 566, in unmold_mask
mask = np.where(mask >= threshold, 1, 0).astype(np.bool)
File "C:\Users\иван\Desktop\нейросеть\vee\lib\site-packages\numpy\__init__.py", line 284, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'bool'