You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add the learnable feature variances in the python code,but I found that the acc will decreased a lot.
The add strategy as below:
1.I reshape the var,mean as the (1,num_classes,feature_dim),reshape the input_feature as (batchsize,1,feature_dim)
2. using the input_feature subtract the mean and divise the var get a tensor with shape ((batchsize,num_classes,feature_dim)).
3.using the tensor batch_dot the mean and get the tensor with shape (batchsize,num_classes,num_classes)
4.Then I take the value of the diagonal of the two or three dimensions and get the final tensor as the margin_distance.
BUT the acc result is terrible,can you give me some advice?
The text was updated successfully, but these errors were encountered:
I am trying to add the learnable feature variances in the python code,but I found that the acc will decreased a lot.
The add strategy as below:
1.I reshape the var,mean as the (1,num_classes,feature_dim),reshape the input_feature as (batchsize,1,feature_dim)
2. using the input_feature subtract the mean and divise the var get a tensor with shape ((batchsize,num_classes,feature_dim)).
3.using the tensor batch_dot the mean and get the tensor with shape (batchsize,num_classes,num_classes)
4.Then I take the value of the diagonal of the two or three dimensions and get the final tensor as the margin_distance.
BUT the acc result is terrible,can you give me some advice?
The text was updated successfully, but these errors were encountered: