Comments (4)
Hi,
In https://github.com/facebookresearch/detr#notebooks the first notebook has the code to visualize the images that we used in the paper, including the attention matrix.
Each point in the original image (which corresponds to a line (or column) in the attention mask) can be reshaped as an image.
I believe I've answered your question and as such I'm closing this issue
from detr.
hey @fmassa, thanks for the great detr work! I've been trying to replicate some of the work illustrations.
I'd expect the self-attention weights would come from the operation attn = (q*scale) @ k.T
that weighs the values. It turned out that looking at the detr repo at the Transformers classes definition: https://github.com/facebookresearch/detr/blob/main/models/transformer.py#L127, the forward outcome only yields the final tensor of dimensions (b, h * w, c)
.
I don't know how you could get the hook's outcome from the colab's notebook. Is there any other code that the colab model used?
from detr.
Related Issues (20)
- Error in loading weights from Model Zoo
- How can I use DETR to detect rotated bbox HOT 1
- Sigmoid in bounding boxes prediction? HOT 2
- What is the object query ? HOT 3
- Big misunderstanding on DETR
- Why different criteria for loss calculation and Hungarian matching
- DETR in raspberry pi?
- Why Resnet features multiplied by 0.1 in Colab notebook demo? HOT 2
- What does the different loss curves while training mean? HOT 1
- DETRsegm to torchscript HOT 1
- I have some problem about object query. HOT 8
- if object query is random, as shown in code, how to evaluate to get a steady result? HOT 1
- unable to download annoations from the main readme.md
- using vit as image backbone HOT 1
- Keyerror: image_id (training detr on custom dataset
- How to train with a custom dataset on mac m2?
- continuously growing memory
- Question about object queries. HOT 4
- I want to train the DETR model on a CPU. How can I make it possible on a small computer, 8gb RAM HOT 3
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 detr.