Skip to content
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

Incorrect Albumentations version in requirements.txt (needs to be >1.0.3 but <2.0) #13523

Open
2 tasks done
ViKarp opened this issue Mar 3, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working dependencies Dependencies and packages

Comments

@ViKarp
Copy link

ViKarp commented Mar 3, 2025

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

Training

Bug

When installing dependencies for classification with augmentation in YOLOv5 from the requirements.txt file, I found that the version of the albumentations library is pinned to >=1.0.3. However, proper augmentation functionality requires a version of albumentations higher or equal than 1.0.3, yet lower than 2.0.

Running the scripts with version >=2 can lead to errors.

Environment

Ubuntu 22.04
Python 3.10
Default requirements.txt from the repository

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@ViKarp ViKarp added the bug Something isn't working label Mar 3, 2025
@UltralyticsAssistant UltralyticsAssistant added the dependencies Dependencies and packages label Mar 3, 2025
@UltralyticsAssistant
Copy link
Member

👋 Hello @ViKarp, thank you for your interest in YOLOv5 🚀 and for reporting this possible issue with Albumentations!

For 🐛 Bug Reports, could you please provide a minimum reproducible example to help us debug the versioning issue? The details you’ve provided are helpful, but a short snippet or specific script demonstrating the issue with Albumentations' version would be greatly appreciated.

For reference, please ensure you're using the correct environment:

Requirements

Python>=3.8.0 with all dependencies installed from the requirements.txt. To set up the environment, follow these steps:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install requirements

If you encounter this issue while using one of our verified environments, we’d recommend double-checking your setup against the options below:

Verified Environments

Additionally, you might want to check out our ⭐️ guides to ensure everything is configured properly.

Status

YOLOv5 CI
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI includes tests for training, validation, inference, export, and benchmarks.

This is an automated response to acknowledge your query; an Ultralytics engineer will assist you soon. Thank you for helping us improve YOLOv5! 🚀✨

@pderrenger
Copy link
Member

@ViKarp thank you for catching this! We welcome your PR to update the Albumentations version constraint in the YOLOv5 requirements.txt to albumentations>=1.0.3,<2.0.0. The team will review it promptly. For implementation details, see the Albumentations integration documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Dependencies and packages
Projects
None yet
Development

No branches or pull requests

3 participants