-
Notifications
You must be signed in to change notification settings - Fork 20
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
PascalVOC example, Solarize value error #51
Comments
installing albumentations v 0.5.1 instead of 1.4.7 fixed this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I try to run/reproduce the PascalVOC autoalbument example (copyied dataset.py and search.yaml from here https://albumentations.ai/docs/autoalbument/examples/pascal_voc/) I get following error:
File "/home/svoboda/Projects/autoalbu/venv/lib/python3.10/site-packages/autoalbument/faster_autoaugment/models/policy_model.py", line 86, in
return A.Sequential([stage.create_transform(input_dtype) for stage in self.stages], p=p)
File "/home/svoboda/Projects/autoalbu/venv/lib/python3.10/site-packages/autoalbument/faster_autoaugment/models/policy_model.py", line 65, in create_transform
transforms.append(operation.create_transform(input_dtype, p))
File "/home/svoboda/Projects/autoalbu/venv/lib/python3.10/site-packages/autoalbument/faster_autoaugment/models/policy_operations.py", line 129, in create_transform
return self.as_transform(transform_param, p)
File "/home/svoboda/Projects/autoalbu/venv/lib/python3.10/site-packages/autoalbument/faster_autoaugment/models/policy_operations.py", line 200, in as_transform
return A.Solarize(threshold=value, p=p)
File "/home/svoboda/Projects/autoalbu/venv/lib/python3.10/site-packages/albumentations/core/validation.py", line 29, in custom_init
config = dct"InitSchema"
File "/home/svoboda/Projects/autoalbu/venv/lib/python3.10/site-packages/pydantic/main.py", line 176, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for InitSchema
threshold
Value error, All values should be >= 1, got (0, 1) instead [type=value_error, input_value=0, input_type=int]
For further information visit https://errors.pydantic.dev/2.7/v/value_error
Thank you!
The text was updated successfully, but these errors were encountered: