-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help aggregating the feature maps into smaller data #3619
Comments
@rocketsfallonrocketfalls you may want to see AdaptiveAvgPool2d for averaging over the last 2 spatial dimensions. https://pytorch.org/docs/stable/generated/torch.nn.AdaptiveAvgPool2d.html |
@rocketsfallonrocketfalls good news 😃! Feature map visualization was added ✅ in PR #3804 by @Zigars today. This allows for visualizing feature maps from any part of the model from any function (i.e. detect.py, train.py, test.py). Feature maps are saved as *.png files in runs/features/exp directory. To turn on feature visualization set Lines 158 to 160 in 20d45aa
To receive this update:
Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀! |
@glenn-jocher, @Zigars, that's great news, thanks a lot! |
2D Pooling seems to work fine for now :) |
Can anyone help me understand what are the dimensions of the feature vectors explicitly for and how can I use them for my application?
My actual problem:
In my application in particular, I get 3 sets of feature maps for a single image flowing into the
Detect
layer. Their dimensions are:192 x 32 x 40
384 x 16 x 20
768 x 8 x 10
My actual question:
The text was updated successfully, but these errors were encountered: