Comments (6)
Hi,
Assume you've got a pre-trained classifier like EfficientNet-B6 for your dataset, you can simply remove the final global average pooling layer (and may have to adjust the shape of the output feature map before you feed it to the classification head) to generate the dense label map.
from tokenlabeling.
If I save the feature vector of the picture as pt, how can I make the label of the small image correspond to the label of the whole image later?
from tokenlabeling.
This is automatically done during training.
TokenLabeling/tlt/data/mixup.py
Lines 27 to 33 in aa438ef
The label map will be cropped (according to the random crop box) and resized to the target shape.
from tokenlabeling.
from tokenlabeling.
You can reopen this issue if you have any further questions.
from tokenlabeling.
Hi, Assume you've got a pre-trained classifier like EfficientNet-B6 for your dataset, you can simply remove the final global average pooling layer (and may have to adjust the shape of the output feature map before you feed it to the classification head) to generate the dense label map.
Hi Zihang @zihangJiang , thanks for your excellent work.
I'd like to ask how the score map are generated.
First we use a pretrained machine annotator like NFNet-F6, and as you say we remove the final global average pooling layer, we get the feature map of an input image. But how to transform the feature map to the dense score map, let's say 1000*patch_num for ImageNet? Sorry for my unfamiliarity with the NFNet-F6, will it automatically generate the patch label or there are some other technique to finish this?
Thanks for your reply.
from tokenlabeling.
Related Issues (20)
- not use distributed_train.sh
- The model parameters couldn't be downloaded. HOT 4
- A Bag of Training Techniques for ViT HOT 1
- Python3.6, ok; Python3.8, error HOT 1
- RuntimeError: CUDA error: device-side assert triggered HOT 4
- The accuracy of the validation set is 0,and the loss is always around 13 HOT 7
- label_map does not do the same augmentation (random crop) as the input image HOT 1
- How to print the output of the wrong prediction of validation dataset? HOT 10
- Can Token labeling reach higher than annotator model? HOT 1
- Could you please provide the training log ? HOT 5
- generate_label.py unable to find model lvvit_s HOT 2
- Pretrained weights for LV-ViT-T HOT 5
- Generating label for custom dataset HOT 2
- 关于TokenLabel的疑问 HOT 2
- BatchSize Specified HOT 2
- [ LV-ViT-S pretrained model ] HOT 1
- Model settings for Cifar10
- how to apply token labeling to CNN ?
- Dimension inconsistency of the token labels
- target_cls 部分代码有问题??
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 tokenlabeling.