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

Scripts for computing IoU #3

Closed
rahul-nt opened this issue Sep 11, 2018 · 4 comments
Closed

Scripts for computing IoU #3

rahul-nt opened this issue Sep 11, 2018 · 4 comments

Comments

@rahul-nt
Copy link

Hi

Is the code for computing IoU and mIoU also included in the scripts, or does that have to be done separately from the resultant predictions in the submits directory?

@zlckanata
Copy link
Owner

There is no script for computing IoU or mIoU in this repository. Computing IoU using numpy just like this.
def iou(a, b): a //= 255 b //= 255 o = a+b i = (o==2).sum() u = (o>=1).sum() if u == 0: return 1.0 return 1.0*i/u
image

@rahul-nt
Copy link
Author

Thanks for the reply.

Another question: how did you do the validation if the validation masks are not available in the dataset?
(I had also seen the same question of yours on the DeepGlobe forum, but there was no reply there)

@zlckanata
Copy link
Owner

zlckanata commented Sep 19, 2018

For your question, I did not validate my models in the final phase.

I tried several methods in the development phase, and found that D-LinkNet34 is better than the ensemble of LinkNet34 and Unet on the validation set.
Therefore, I trained D-LinkNet50, D-LinkNet101 and D-Unet in the final phase, and submitted the predictions on the test set only.

It would be more standard to use some kind of validation such as cross-validation. However, due to the time limitation and no many training images, I did not partition some of the data as validation set.

@rahul-nt
Copy link
Author

@zlkanata
Thanks for the help!

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