Open monkeycc opened 3 months ago
@monkeycc it looks like you're encountering a timeout error while fetching version info for the albumentations
library. This issue can sometimes occur due to network connectivity problems or restrictions.
To resolve this, you can try the following steps:
Check Network Connection: Ensure that your internet connection is stable and there are no network restrictions or firewalls blocking the request.
Update albumentations
: Make sure you are using the latest version of the albumentations
library. You can update it using:
pip install --upgrade albumentations
Disable Version Check: If the issue persists, you can disable the version check in albumentations
by modifying the library's source code or by setting an environment variable to bypass this check.
Retry Later: Sometimes, the issue might be temporary due to server-side problems. You can try running your training script again after some time.
If the problem continues, please ensure you are using the latest version of the Ultralytics package and all dependencies. If you still face issues, feel free to reach out again.
The network is normal, but Chinese users cannot access websites such as GitHub
albumentations pip install --upgrade albumentations It's already the latest version
3.Disable Version Check: If the issue persists, you can disable the version check in by modifying the library's source code or by setting an environment variable to bypass this check.albumentations
Please provide code examples
@monkeycc thank you for the information. Given the network restrictions, you can bypass the version check in albumentations
by setting an environment variable. Add this to your script before importing albumentations
:
import os
os.environ['ALBUMENTATIONS_DISABLE_VERSION_CHECK'] = '1'
This should prevent the library from attempting to fetch version info. If you continue to experience issues, please ensure you are using the latest version of the Ultralytics package.
Hey, there is a change in variable name and this works
export NO_ALBUMENTATIONS_UPDATE=1
before the application starts
or
you can add this in your python code before import the library
os.environ['NO_ALBUMENTATIONS_UPDATE'] = '1'
Thank you for the update. Setting the environment variable NO_ALBUMENTATIONS_UPDATE
as you mentioned is indeed a valid approach to bypass the version check in albumentations
. If you encounter any further issues, please ensure you are using the latest versions of all dependencies. If the problem persists, feel free to reach out again.
Search before asking
Question
ultralytics-8.2.66 python3.11 win11
Additional
No response