You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the interesting tool you created. I installed the package as explained in the readme, and am interested in both the command line and GUI options. That said, when I run pix2tex, I get the errors below. Any ideas?
% pix2tex Sample_equation.png
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pix2tex/dataset/transforms.py:7: UserWarning: Argument 'value' is not valid and will be ignored.
[alb.ShiftScaleRotate(shift_limit=0, scale_limit=(-.15, 0), rotate_limit=1, border_mode=0, interpolation=3,
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/albumentations/core/validation.py:45: UserWarning: ShiftScaleRotate is a special case of Affine transform. Please use Affine transform instead.
original_init(self, **validated_kwargs)
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pix2tex/dataset/transforms.py:9: UserWarning: Argument 'border_mode' is not valid and will be ignored.
alb.GridDistortion(distort_limit=0.1, border_mode=0, interpolation=3, value=[255, 255, 255], p=.5)], p=.15),
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pix2tex/dataset/transforms.py:9: UserWarning: Argument 'value' is not valid and will be ignored.
alb.GridDistortion(distort_limit=0.1, border_mode=0, interpolation=3, value=[255, 255, 255], p=.5)], p=.15),
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/main.py:426: UserWarning: Pydantic serializer warnings:
Expected `dict[str, any]` but got `UniformParams` with value `UniformParams(noise_type=... 0.058823529411764705)])` - serialized value may not be as expected
return self.__pydantic_serializer__.to_python(
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/pix2tex", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pix2tex/__main__.py", line 27, in main
from .cli import main
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pix2tex/cli.py", line 1, in <module>
from pix2tex.dataset.transforms import test_transform
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pix2tex/dataset/transforms.py", line 13, in <module>
alb.GaussNoise(10, p=.2),
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/albumentations/core/validation.py", line 35, in custom_init
config = dct["InitSchema"](**full_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for InitSchema
std_range
Input should be a valid tuple [type=tuple_type, input_value=10, input_type=int]
For further information visit https://errors.pydantic.dev/2.10/v/tuple_type
%
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Thank you for the interesting tool you created. I installed the package as explained in the readme, and am interested in both the command line and GUI options. That said, when I run pix2tex, I get the errors below. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions