Extract Image Features for regression
2 views (last 30 days)
Show older comments
Hello,
I have converted MobileNet to a regression Model by replacing relevant layers. Training and testing were successfully done and x,y coordinates of keypoints of interest are predicted.
Now I am trying to extract features of the trained network for prediction
layer='regressionoutput'
featuresTrain = activations(BodyEstimate,Train,layer,"OutputAs","rows")
featuresTest = activations(BodyEstimate,Test,layer,'OutputAs','rows')
whos featuresTrain
The code returns 'featresTrain' as 3011x2 single (2 is related to x,y ccordinates). I have been unsuccessful to fit a regression model using the following code:
regressor=fitrauto(featuresTrain,Y)
How should I prepare 'Response data' in 'Y', conseidering that responses are x,y coordinates of keypoints in images?
Thanks
2 Comments
Shashank Gupta
on 26 May 2021
Hi,
Help me understand few things, I am assuming it is supervised problem where you have the information of coordinates of keypoints in images, So what is stopping you to prepare the response data. I am trying to understand the difficulty in preparation. Also you mentioned, you changed some layers for MobileNet model and then train and test it, what exactly you train? what is the response data you used to train that model. It is unclear and not trivial for me to make any assumption or understand it. Help me understand it.
Cheers.
Answers (0)
See Also
Categories
Find more on Gaussian Process Regression in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!