hytseng0509 / CrossDomainFewShot

Cross-Domain Few-Shot Classification via Learned Feature-Wise Transformation (ICLR 2020 spotlight)
323 stars 62 forks source link

Some questions about the code. #17

Open WHQ1111 opened 3 years ago

WHQ1111 commented 3 years ago

As we can see, the line 280 and the line 283 of the file 'methods/backbone.py' mean that we use the Feature Wise Transformation module in MAML not the metric-based models. But this contradicts the paper, doesn't it?

hytseng0509 commented 3 years ago

Sorry for the confusion. The naming "maml" here indicates that we want to enable the gradient back-propagation in the learning-to-generalize (or learning-to-learn) training process.

WHQ1111 commented 3 years ago

Sorry for the confusion. The naming "maml" here indicates that we want to enable the gradient back-propagation in the learning-to-generalize (or learning-to-learn) training process.

So why we use the Feature Wise Transformation module when we want to enable the gradient back-propagation in the learning-to-generalize (or learning-to-learn) training process? Is this back-propagation process similar to calculating the gradient along the inner loop in MAML?

hytseng0509 commented 3 years ago

Yeah you are right. The code is adopted from the MAML implementation, so does the naming. :-)