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
augmented_image = pipeline(image)
^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\py312\Lib\site-packages\augraphy\base\augmentationpipeline.py", line 859, in __call__
return self.augment(image, return_dict=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\py312\Lib\site-packages\augraphy\base\augmentationpipeline.py", line 213, in augment
data = self.augment_single_image(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\py312\Lib\site-packages\augraphy\base\augmentationpipeline.py", line 375, in augment_single_image
self.apply_phase(data, layer="ink", phase=self.ink_phase)
File "D:\anaconda3\envs\py312\Lib\site-packages\augraphy\base\augmentationpipeline.py", line 737, in apply_phase
if augmentation.should_run():
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Augmentation.should_run() missing 1 required positional argument: 'self'
The text was updated successfully, but these errors were encountered:
Hi, you should have a parentheses () after each augmentation because we are creating a class instance. Using it without the parentheses is actually pointing to the class instead of initializing a class instance. You can try:
python3.12
augraphy 8.2.6
The text was updated successfully, but these errors were encountered: