-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
Where the changes should be made to detect horizontal line and vertical lines? Can anyone discus elaborately? #2070
Comments
👋 Hello @Sagor-Saha, 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://www.ultralytics.com or email Glenn Jocher at [email protected]. RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt 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), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
@Sagor-Saha for very thin objects you may need to relax the aspect ratio constraints on labels in the dataloader, which are set to <20 by default. Other than that no real changes are required, though if your entire dataset is composed of extreme aspect ratio objects a more advanced redistribution of the convolution kernels may help you (i.e. alternate some 3x3s to 1x9 and 9x1 etc). Lines 907 to 913 in 630ec06
|
Thank you for responding. Considering the horizontal lines are say(width 5pixel height 500-700 pixel) and vertical line are say( opposite of horizontal), would it work ifI change the aspect ratio to 500? |
@Sagor-Saha have no idea what you mean by will it 'work', but the above function controls candidate label criteria. If you want your objects to pass and be included in training, then you should adjust the thresholds accordingly. |
Yes. I mean to say if update the parameter you talked about. Will the model be able to detect horizontal and vertical line images? |
Well, there's no way to know what sort of metrics your training might produce on your custom data unless you actually train. If you modify the thresholds to allow these objects to pass, i.e. ar_thr=1000 will effectively allow all aspect ratio labels to pass, then they will at least be included in training. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
No description provided.
The text was updated successfully, but these errors were encountered: