Skip to content

Python refactorings and simplifications - #7549

Merged
glenn-jocher merged 4 commits into
mainfrom
fixes
Jan 12, 2024
Merged

glenn-jocher merged 4 commits into
mainfrom
fixes

Conversation

@glenn-jocher

@glenn-jocher glenn-jocher commented Jan 12, 2024 •

Copy link
Copy Markdown
Member

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Updating and refining code across various Ultralytics projects.

πŸ“Š Key Changes

  • Streamlined image preprocessing and removal of unnecessary code.
  • Changed the way file paths are constructed for better consistency and readability.
  • Simplified the handling of empty arrays and removed redundant list comprehensions.
  • Updated conditions for better readability and performance.
  • Removed blank lines for cleaner formatting and conformity to style guides.
  • Implemented minor bug fixes and logical improvements.

🎯 Purpose & Impact

  • πŸ’‘ Cleaner Code: Codebase is more readable and maintainable.
  • πŸ› οΈ Bug Fixes: Fixed potential issues causing errors or unexpected behavior.
  • πŸš€ Performance: Simplifying conditions can improve the performance slightly.
  • πŸ“ Consistency: Standardized file path operations for better cross-platform reliability.

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@codecov

codecov Bot commented Jan 12, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: 95 lines in your changes are missing coverage. Please review.

Comparison is base (0da1383) 77.17% compared to head (cd9f273) 39.59%.

Files Patch % Lines
ultralytics/solutions/object_counter.py 0.00% 19 Missing ⚠️
ultralytics/solutions/speed_estimation.py 0.00% 18 Missing ⚠️
ultralytics/solutions/heatmap.py 0.00% 14 Missing ⚠️
ultralytics/models/yolo/obb/val.py 0.00% 9 Missing ⚠️
ultralytics/data/explorer/explorer.py 11.11% 8 Missing ⚠️
ultralytics/data/split_dota.py 0.00% 5 Missing ⚠️
ultralytics/solutions/distance_calculation.py 0.00% 4 Missing ⚠️
ultralytics/data/explorer/utils.py 0.00% 3 Missing ⚠️
ultralytics/hub/session.py 0.00% 3 Missing ⚠️
ultralytics/utils/checks.py 0.00% 2 Missing ⚠️
... and 10 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7549       +/-   ##
===========================================
- Coverage   77.17%   39.59%   -37.59%     
===========================================
  Files         117      117               
  Lines       14348    14331       -17     
===========================================
- Hits        11073     5674     -5399     
- Misses       3275     8657     +5382     
Flag Coverage Ξ”
Benchmarks ?
GPU 39.59% <7.76%> (+0.03%) ⬆️
Tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@glenn-jocher
glenn-jocher merged commit f6309b8 into main Jan 12, 2024
@glenn-jocher
glenn-jocher deleted the fixes branch January 12, 2024 18:34
gkinman pushed a commit to Octasic/ultralytics that referenced this pull request May 30, 2024
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Hassaan Farooq <103611273+hassaanfarooq01@users.noreply.github.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
puzhiyuan pushed a commit to puzhiyuan/ultralytics that referenced this pull request Oct 18, 2024
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Hassaan Farooq <103611273+hassaanfarooq01@users.noreply.github.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
khatami-mehrdad pushed a commit to DeGirum/compiler_ultralytics that referenced this pull request Apr 24, 2026
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: Hassaan Farooq <103611273+hassaanfarooq01@users.noreply.github.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants