Comments (4)
To adapt few-shot inference, forwarding support images and labels is enough. The model.before_forward_support()
will handle them according to their labels. Also, the labels should in the range(0, number of classes).
from mmfewshot.
Hi @linyq17
It's actually not working like that. I am forwarding a couple of support images and labels using process_support_images()
but only the last forwarded images are being used to build the support features and labels.
In other words, if forwarding two different sets of support images, set-1
, and set-2
(in this order), the results of the inference will be the selfsame as if forwarding only the latter set-2
.
As already mentioned above, this seems to me to be the case because in before_forward_support() for meta_baseline_head
we are resetting the support features.
from mmfewshot.
It seems the process_support_images
was called multiple times. Each time this function will reset the head and the code is in here. If the support images need to be passed multiple times, this line of code needs to be modified.
from mmfewshot.
Exactly. I had modified only that and I got different results. But wanted to confirm once. Thanks.
before_forward_query()
(for meta baseline) on the other hand need not be modified.
from mmfewshot.
Related Issues (20)
- Hello, is there any tool in mmfewshot for calculating FLOPs, parameter count, and FPS?
- Add mobilenetv2 as backbone model.
- 运行TFA算法出现nan HOT 2
- cannot import name 'show_result_pyplot' from 'mmdet.apis' HOT 4
- How to make my own dataset in COCO format for MMFewshot?
- 'NoneType' object has no attribute 'update' when running Meta -RCNN HOT 1
- loss are NAN
- Slow training and High memory usage for classification models
- About the data path
- Is this repository still undergoing maintenance and updates?
- persistent_workers
- about fpn
- About Attention-RPN fine-tuning
- 中文版 install RADEME有错误
- tools/classification/test.py has no attribute 'out'
- incompatibility between the versions of mmdet and mmcv HOT 2
- Discrepancy in AP50 while Re-implementing MetaRCNN
- about register NECKS
- ImportError: cannot import name 'compat_cfg' from 'mmfewshot.utils'
- OSError: work_dir/relation-net_conv4_1xb105_cub_5way-1shot/best_accuracy_mean.pth is not a checkpoint file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmfewshot.