import easyocr
reader = easyocr.Reader(lang_list=['en'],recog_network='best_accuracy')
I am getting this error.
WARNING:easyocr.easyocr:CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU.
/usr/local/lib/python3.7/dist-packages/torchvision/models/_utils.py:253: UserWarning: Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and will be removed in 0.15. Please access them via the appropriate Weights Enum instead.
"Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and will "
/usr/local/lib/python3.7/dist-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and will be removed in 0.15, please use 'weights' instead.
f"The parameter '{pretrained_param}' is deprecated since 0.13 and will be removed in 0.15, "
/usr/local/lib/python3.7/dist-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and will be removed in 0.15. The current behavior is equivalent to passing weights=None.
warnings.warn(msg)
import easyocr reader = easyocr.Reader(lang_list=['en'],recog_network='best_accuracy') I am getting this error.
WARNING:easyocr.easyocr:CUDA not available - defaulting to CPU. Note: This module is much faster with a GPU. /usr/local/lib/python3.7/dist-packages/torchvision/models/_utils.py:253: UserWarning: Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and will be removed in 0.15. Please access them via the appropriate Weights Enum instead. "Accessing the model URLs via the internal dictionary of the module is deprecated since 0.13 and will " /usr/local/lib/python3.7/dist-packages/torchvision/models/_utils.py:209: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and will be removed in 0.15, please use 'weights' instead. f"The parameter '{pretrained_param}' is deprecated since 0.13 and will be removed in 0.15, " /usr/local/lib/python3.7/dist-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or
None
for 'weights' are deprecated since 0.13 and will be removed in 0.15. The current behavior is equivalent to passingweights=None
. warnings.warn(msg)TypeError Traceback (most recent call last) in
1 import easyocr
----> 2 reader = easyocr.Reader(lang_list=['en'],recog_network='best_accuracy')
1 frames /usr/local/lib/python3.7/dist-packages/easyocr/recognition.py in get_recognizer(recog_network, network_params, character, separator_list, dict_list, model_path, device, quantize) 164 else: 165 model_pkg = importlib.import_module(recog_network) --> 166 model = model_pkg.Model(num_class=num_class, **network_params) 167 168 if device == 'cpu':
TypeError: init() got an unexpected keyword argument 'num_class'