Skip to content
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

Changing IoU Thresholds #73

Closed
xyntechx opened this issue Jun 16, 2021 · 1 comment
Closed

Changing IoU Thresholds #73

xyntechx opened this issue Jun 16, 2021 · 1 comment

Comments

@xyntechx
Copy link

Hi! Thank you for creating PixelLib! I would like to evaluate my model using different IoU thresholds. I have tried to clone the repo and modified the source code but it seems that the IoU threshold used is still 0.5. Can you update the source code such that we can use different thresholds as soon as possible please? Thank you in advance!

@ayoolaolafenwa
Copy link
Owner

@xyntechx It is now possible to change the IOU threshold for model evaluation. Upgrade to the latest version of PixelLib using;

pip3 install pixellib --upgrade

modified code

import pixellib
from pixellib.custom_train import instance_custom_training

eval = instance_custom_training()
eval.modelConfig(num_classes=2)

eval.load_dataset("Nature")

#change the iou threshold to the value you want
eval.evaluate_model("Nature_model_resnet101.h5", iou_threshold= 0.4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants