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

Ask the brief steps on pixel-wise labeling prediction #1

Closed
amiltonwong opened this issue Oct 1, 2015 · 5 comments
Closed

Ask the brief steps on pixel-wise labeling prediction #1

amiltonwong opened this issue Oct 1, 2015 · 5 comments

Comments

@amiltonwong
Copy link

Hi, Sadeep Jayasumana,

I had already installed crfasrnn.
As given the trained model (TVG_CRFRNN_COCO_VOC.caffemodel) , how could I perform pixel-wise labeling prediction on test image? Could you list the brief steps?

Thanks in advance!
Milton

@sadeepj
Copy link
Collaborator

sadeepj commented Oct 1, 2015

Hi Milton,

You could use the MATLAB script https://github.com/torrvision/crfasrnn/blob/master/matlab-scripts/crfrnn_demo.m. If you have successfully run the commands "make" and "make matcaffe" as per the instructions in https://github.com/torrvision/crfasrnn/blob/master/README.md, the above MATLAB script should work OOTB.

BTW, I have just made some modifications to the above MATLAB script. So please update your code before running it.

Regards,
Sadeep

@amiltonwong
Copy link
Author

Thanks Sadeep,

I found it and it works well (I test on MATLAB) and get the result in output.png. My further question is :
How could I append the pixel-wise labeling result (as a mask) to the original input image which is similar to the demo result image (https://github.com/torrvision/crfasrnn/blob/master/sample.png)?

Thanks in advance!

Milton

@bittnt
Copy link
Collaborator

bittnt commented Oct 1, 2015

@amiltonwong This question is out of the scope of this code.

But you can change the alpha chanel of the pixel-wise labelling mask and then compose it with the original input image.

@amiltonwong
Copy link
Author

Thanks @bittnt ,
I implement that by changing the 'AlphaData' property of image handle.
Another question: According to the updated message: https://goo.gl/6Y4j51 , after downloading the listing file "seg12valid.txt" for reduced validation set, how can I implement the evaluation (to obtain 73.0 mean-IOU score) ? Could you list the brief steps or point me to the reference places (such as VOCdevkit/VOCcode)?

Thanks in advance !
Milton

@bittnt
Copy link
Collaborator

bittnt commented Oct 6, 2015

@amiltonwong replace val.txt in VOCdevkit with seg12valid.txt. Check their toolkit: http://host.robots.ox.ac.uk:8080/pascal/VOC/voc2012/index.html#devkit

@bittnt bittnt closed this as completed Apr 3, 2016
bittnt added a commit that referenced this issue Apr 25, 2016
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

3 participants