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

Not able to replicate accuracies and Mean IoU #134

Open
ghost opened this issue Mar 29, 2018 · 0 comments
Open

Not able to replicate accuracies and Mean IoU #134

ghost opened this issue Mar 29, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2018

Hai,

I downloaded segnet_basic_camvid.caffemodel from http://mi.eng.cam.ac.uk/~agk34/resources/SegNet/segnet_basic_camvid.caffemodel and tried to run the test_segmentation_camvid.py.

I am getting output image like below.
camvid_basic

I am also trying to calculate the accuracies and mean IoU using the matlab script , compute_test_results.m
I am getting different values(low values, eg : class average accuracy is :0.088442) than the values quoted in the SegNet tutorial site.

Command I used for testing is
python test_segmentation_camvid.py --model ../Models/segnet_basic_inference.prototxt --weights ../weights/segnet_basic_camvid.caffemodel --iter 233

I saved the predicted images by adding following line "test_segmentation_camvid.py"
ind = np.argmax(output, axis=0)
cv2.imwrite(output_image,ind) // newly added line.

How to get good segmented output.? Please let me know the steps to get quoted accuracies and Mean IoU.

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

0 participants