-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load model during image segmentation #68
Comments
@alic-xc Share the code you used for inference. |
After i've trained my model. i tried instance segmentation which gave me error.
|
@alic-xc you used the wrong code for inference. This is the code for performing inference with your custom trained model. import pixellib
from pixellib.instance import custom_segmentation
segment_image = custom_segmentation()
#inference configuration for your cutom model to state the number of classes and class names
#change it to your trained model configuration
segment_image.inferConfig(num_classes= 2, class_names= ["BG", "butterfly", "squirrel"])
segment_image.load_model("mask_rcnn_model/Nature_model_resnet101.h5")
segment_image.segmentImage("sample2.jpg", show_bboxes=True) Read my tutorial on performing inference with custom models. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI guys,
I'm having trouble during loading of model.
any help will be appreciated.
The text was updated successfully, but these errors were encountered: