This is my code (as per pixellib documentation)
import pixellib
from pixellib.instance import instance_segmentation
segment_image = instance_segmentation(infer_speed = "rapid" )
segment_image.load_model("mask_rcnn_coco.h5")
segment_image.segmentImage("sample.jpg", show_bboxes = True, output_image_name = "new.jpg")
And then I get this error code:
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 106, in h5py.h5f.open
FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = 'mask_rcnn_coco.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
I expected this to work successfully, as it was in the pixellib documentation. Unfortunately, I keep getting this error code even when trying semantic segmentation from pixellib.
If anyone has any feedback, it would be greatly appreciated. I have been trying to solve this for days.
Note: I have already installed tensorflow, imgaug, and pixellib (with the upgrade).