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

Update extract_feature.py #123

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

manideep-bandaru
Copy link

The feature set used to build the 'concat' predictor is [ HW, CIN1 , CIN2 , CIN3 , CIN4 ] but when we are predicting , the feature set is wrongly extracted for concat layer. The ' no. of input tensors ' feature value is not required in the feature list because we are adding padding values to the list if no. of tensors are less than 4 and removing extra tensors if no. of tensors more than 4 thus maintaining the consistency. Even no. of channels are wrongly extracted thus made changes accordingly.

The feature set used to build the 'concat' predictor is [ HW, CIN1 , CIN2 , CIN3 , CIN4 ] but when we are predicting , the feature set is wrongly extracted for concat layer. The ' no. of input tensors ' feature value is not required in the feature list because we are adding padding values to the list if no. of tensors are less than 4 and removing extra tensors if no. of tensors more than 4 thus maintaining the consistency. Even no. of channels are wrongly extracted thus made changes accordingly.
@manideep-bandaru
Copy link
Author

@microsoft-github-policy-service agree

@@ -59,7 +59,6 @@ def get_predict_features(config):
#features = [inputh, len(itensors)]
features = [inputh]
for it in itensors:
#co = it[-1]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part where we are extracting the channels from a tensor, it depends on how the features are actually composed in a tensor, few models have { n , c , h , w } and few models have { n , h , w , c } hence
co = it[-1] or co = it[-2] or co = it[1] matters on the model we are sending for the prediction so can you please look into this very soon !!

@JiahangXu JiahangXu self-requested a review August 9, 2023 03:24
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

Successfully merging this pull request may close these issues.

None yet

1 participant