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

Input should be None [type=none_required, input_value=1.2, input_type=float] For further information visit https://errors.pydantic.dev/2.8/v/none_required #243

Open
cherryGQR opened this issue Sep 3, 2024 · 4 comments

Comments

@cherryGQR
Copy link

Traceback (most recent call last):
File "/home/cherrygump/anaconda3/envs/nougat/bin/nougat", line 5, in
from predict import main
File "/home/cherrygump/anaconda3/envs/nougat/lib/python3.10/site-packages/predict.py", line 18, in
from nougat import NougatModel
File "/home/cherrygump/anaconda3/envs/nougat/lib/python3.10/site-packages/nougat/init.py", line 7, in
from .model import NougatConfig, NougatModel
File "/home/cherrygump/anaconda3/envs/nougat/lib/python3.10/site-packages/nougat/model.py", line 34, in
from nougat.transforms import train_transform, test_transform
File "/home/cherrygump/anaconda3/envs/nougat/lib/python3.10/site-packages/nougat/transforms.py", line 146, in
alb.ElasticTransform(
File "/home/cherrygump/anaconda3/envs/nougat/lib/python3.10/site-packages/albumentations/core/validation.py", line 35, in custom_init
config = dct"InitSchema"
File "/home/cherrygump/anaconda3/envs/nougat/lib/python3.10/site-packages/pydantic/main.py", line 193, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for InitSchema
alpha_affine
Input should be None [type=none_required, input_value=1.2, input_type=float]
For further information visit https://errors.pydantic.dev/2.8/v/none_required

@ptrckSTL
Copy link

ptrckSTL commented Sep 5, 2024

Seeing this as well on a fresh install

  Chip: Apple M2 Max
  Total Number of Cores: 12 (8 performance and 4 efficiency)
  Memory: 64 GB
  System Firmware Version: 10151.140.19

@anshumankmr
Copy link

How to resolve this?

@armancohan
Copy link

downgrade albumentations
pip install albumentations==1.0.0

@seetimee
Copy link

downgrade albumentations pip install albumentations==1.0.0

thanks

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

No branches or pull requests

5 participants