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
Seeking help on using pretrained models for inferencing #7
Comments
Ah I see what's going on now. I didn't before realize how to correctly call fcnTest using the pretrained models until I started looking at fcnTestModelZoo. For future users who may initially be similarly confused, I'm now setting opts.modelFamily to 'ModelZoo' and it works now. Great implementation! |
Hi Stephen, Were you able to do semantic region(not class based) segmentation using this code? I looked at fcnTest.m, vocSetup seems to be setting up around 20 predefined classes for the testing, but I was wondering if it would label semantically similar regions given a test image like peppers.png. Have you got any suggestions? Thanks! |
Hi ectg. I'm not sure I understand your question. I was able to retrain the network to detect different classes. You can retrain/fine tune the models to look for anything you want. What do you mean by "(not class based)" - are you looking to do just normal segmentation? |
Hi Stephen, Thanks for the reply. Yes I was looking to do normal segmentation to start off with, but I saw yesterday that the pretrained models like pascal-fcn8s-dag.mat aren't suited for that. I would instead like to do a 2 class segmentation of 'person' vs the rest, but I have't figured out how to see the list of classes used to train that model, the result I get from the evaluation is of dimension 500x500x21, 21 classes I assume, one of which is 'person'. I am new to deep learning, just started last week, hence the noob questions. |
Hi, So I was able to do this segmentation, but have some trouble extracting features from the CNN for transfer learning. I am using imagenet-caffe-alex.mat for feature extraction from the test region. The result from layer 'fc7' after I run my test image of size 500x500x3 is of dimension 10x10x4096, here is the code.
Shouldn't the featureVector be a 4096x1 vector? Do you know what is the significance of the 10x10 patch? |
Hi Stephen et al., I am also setting up a segmentation FCN based on the pascal model. I was having the same kinds of questions as you initially whereby I have run the network and have the 'upscore' variable stored as a 21 layer map of values. Did you figure out how to analyze this upscore variable? As in, how did you go from this variable to the ultimate segmented image? Any kind of help on this would be appreciated! Thanks |
Dear MatConvNet FCN community,
I'm new to semantic segmentation and was hoping to test the pretrained models posted on the MatConvNet website. I'm simply trying to view inferences made by the model "pascal-fcn32s-dag.mat" on peppers.png.
I'm trying two approaches and getting stuck in both.
Any help would be greatly appreciated!
Thank you,
Stephen
The text was updated successfully, but these errors were encountered: