Extract Image Features for regression
조회 수: 2 (최근 30일)
이전 댓글 표시
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
Shashank Gupta
2021년 5월 26일
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.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!