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
For example, 5 way 1 shot, num_queries=1, query_node_pred_generation has shape of [batch_size, 5, 5] query_label has shape of [batch_size, 5]
5 way 1 shot, num_queries=2, query_node_pred_generation have shape of [batch_size, 10, 5] query_label has shape of [batch_size, 10]
In query_node_pred_generation, which dimension is the class (i.e., N ways)?
Dear Jing Li,
It is very unfortunate that the codebase is designed only for the setting of num_queries = 1 in the beginning.
We are sorry that the implementation of auxiliary loss (query_node_pred_loss) confuses many readers. Therefore, we decided to propose a modified version that follows most people's intuition. The accuracy for the result of 5-way 1-shot, resnet12, mini-imagenet is still around 67.70±0.52 (almost the same as reported accuracy on the paper, 67.77).
Please replace the content at line 316-319 of main.py by the code below:
DPGN/main.py
Line 316 in b940111
self.pred_loss(query_node_pred_generation, query_label.long()).mean()
For example, 5 way 1 shot, num_queries=1,
query_node_pred_generation
has shape of [batch_size, 5, 5]query_label
has shape of [batch_size, 5]5 way 1 shot, num_queries=2,
query_node_pred_generation
have shape of [batch_size, 10, 5]query_label
has shape of [batch_size, 10]In
query_node_pred_generation
, which dimension is the class (i.e., N ways)?The text was updated successfully, but these errors were encountered: