You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using resnet50 as network backbone For Mask R-CNN model
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
<ipython-input-20-55777605efed> in <module>()
6 train_maskrcnn.modelConfig(network_backbone = "resnet50", num_classes= 1)
7 train_maskrcnn.load_dataset("fingerlings")
----> 8 train_maskrcnn.evaluate_model("mask_rccn_models")
/usr/local/lib/python3.7/dist-packages/pixellib/custom_train.py in evaluate_model(self, model_path, iou_threshold)
132 if os.path.isdir(model_path):
133 model_files = sorted([os.path.join(model_path, file_name) for file_name in os.listdir(model_path)])
--> 134
135 for modelfile in model_files:
136 if str(modelfile).endswith(".h5"):
UnboundLocalError: local variable 'model_files' referenced before assignment
I need your help. will appreciate any effort
The text was updated successfully, but these errors were encountered:
@alic-xc you used the wrong name to reference the path to the saved models.
train_maskrcnn.evaluate_model("mask_rccn_models")
The name of the default path to saved models is mask_rcnn_models not mask_rccn_models.
Confirm by checking the name of the path to saved models in your directory, you will realize that the path name does not match the name referenced in your code.
Correct code corresponding to the default path of the saved models:
train_maskrcnn.evaluate_model("mask_rcnn_models")
Note: You can change the name of the models' path to any name you want, but ensure that you reference that exact name given in your code.
Hi guys,
Having successfully training my model for the past 1 week. i have a problem trying to evaluate them.
This is the error
I need your help. will appreciate any effort
The text was updated successfully, but these errors were encountered: