-
-
Notifications
You must be signed in to change notification settings - Fork 16k
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
Visualize Features in Yolov5 #8717
Comments
👋 Hello @Bstrum36, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available. For business inquiries or professional support requests please visit https://ultralytics.com or email support@ultralytics.com. RequirementsPython>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on macOS, Windows, and Ubuntu every 24 hours and on every commit. |
@Bstrum36 👋 Hello! Thanks for asking about feature visualization. YOLOv5 🚀 features can be visualized through all stages of the model from input to output. To visualize features from a given source run python detect.py --weights yolov5s.pt --source data/images/bus.jpg --visualize An example Notebook visualizing bus.jpg features with YOLOv5s is shown below: All stages are visualized by default, each with its own PNG showing the first 32 feature maps output from that stage. You can open any PNG for a closer look. For example the first 32 feature maps of the Focus() layer output are shown in Feature maps may be customized by updating the Lines 403 to 427 in bb5ebc2
Good luck 🍀 and let us know if you have any other questions! |
Thanks. I will spend some time on this
…On Mon, Jul 25, 2022 at 4:05 PM Glenn Jocher ***@***.***> wrote:
@Bstrum36 <https://github.com/Bstrum36> 👋 Hello! Thanks for asking about *feature
visualization*. YOLOv5 🚀 features can be visualized through all stages
of the model from input to output. To visualize features from a given
source run detect.py with the --visualize flag:
python detect.py --weights yolov5s.pt --source data/images/bus.jpg --visualize
An example Notebook
<https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb>
visualizing bus.jpg
<https://github.com/ultralytics/yolov5/blob/master/data/images/bus.jpg>
features with YOLOv5s is shown below:
[image: Open In Colab]
<https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb> [image:
Open In Kaggle] <https://www.kaggle.com/ultralytics/yolov5>
[image: Screenshot 2021-08-30 at 16 44 04]
<https://user-images.githubusercontent.com/26833433/131357928-663a120a-3133-4e1a-8995-c812bd732e8a.png>
All stages are visualized by default, each with its own PNG showing the
first 32 feature maps *output* from that stage. You can open any PNG for
a closer look. For example the first 32 feature maps of the Focus() layer
output are shown in stage0_Focus_features.png:
[image: stage0_Focus_features]
<https://user-images.githubusercontent.com/26833433/131359874-ecc9aef8-1c9b-44f5-ac17-d6b987093554.png>
Feature maps may be customized by updating the feature_visualization()
function in utils/plots.py:
https://github.com/ultralytics/yolov5/blob/bb5ebc290e5d630a081d7cbc5a9725ed8cea0a24/utils/plots.py#L403-L427
Good luck 🍀 and let us know if you have any other questions!
—
Reply to this email directly, view it on GitHub
<#8717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI2XRUI7PA3GC7RU4HD2NRDVV3XRVANCNFSM54TOCOMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐! |
Search before asking
Question
The visualize=False, # visualize features flag enables the visualization of the feature maps of some set of convolutions in Yolov5. The png files displaying the features are labeled stage#_Conv_features.png
What am I actually seeing, what are they referring to as stages, can you point me to a reference.
Thanks!
Additional
No response
The text was updated successfully, but these errors were encountered: