From ca677066373b7955ef785379e82993f6f6f3aaae Mon Sep 17 00:00:00 2001 From: rumbleFTW <007rajdeepghosh@gmail.com> Date: Wed, 6 Sep 2023 03:08:54 +0530 Subject: [PATCH] Fixed deform conv error typo --- easyocr/DBNet/assets/ops/dcn/functions/deform_conv.py | 4 ++-- easyocr/DBNet/assets/ops/dcn/functions/deform_pool.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/easyocr/DBNet/assets/ops/dcn/functions/deform_conv.py b/easyocr/DBNet/assets/ops/dcn/functions/deform_conv.py index 84db861a8..61d8e0575 100644 --- a/easyocr/DBNet/assets/ops/dcn/functions/deform_conv.py +++ b/easyocr/DBNet/assets/ops/dcn/functions/deform_conv.py @@ -42,7 +42,7 @@ def custom_formatwarning(msg, *args, **kwargs): warnings.warn(' '.join([ "Failed to import and/or compile 'deform_conv_cpu' with the following error", "{}".format(error), - "Deformable convulution and DBNet will not be able to run on CPU." + "Deformable convolution and DBNet will not be able to run on CPU." ])) dcn_cpu_ready = False @@ -69,7 +69,7 @@ def custom_formatwarning(msg, *args, **kwargs): warnings.warn(' '.join([ "Failed to import or compile 'deform_conv_cuda' with the following error", "{}".format(error), - "Deformable convulution and DBNet will not be able to run on GPU." + "Deformable convolution and DBNet will not be able to run on GPU." ])) dcn_cuda_ready = False diff --git a/easyocr/DBNet/assets/ops/dcn/functions/deform_pool.py b/easyocr/DBNet/assets/ops/dcn/functions/deform_pool.py index b4c9943cb..a6bdd744f 100644 --- a/easyocr/DBNet/assets/ops/dcn/functions/deform_pool.py +++ b/easyocr/DBNet/assets/ops/dcn/functions/deform_pool.py @@ -41,7 +41,7 @@ def custom_formatwarning(msg, *args, **kwargs): warnings.warn(' '.join([ "Failed to import or compile 'deform_pool_cpu' with the following error", "{}".format(error), - "Deformable convulution and DBNet will not be able to run on CPU." + "Deformable convolution and DBNet will not be able to run on CPU." ])) dcn_cpu_ready = False @@ -64,7 +64,7 @@ def custom_formatwarning(msg, *args, **kwargs): warnings.warn(' '.join([ "Failed to import or compile 'deform_pool_cuda' with the following error", "{}".format(error), - "Deformable convulution and DBNet will not be able to run on GPU." + "Deformable convolution and DBNet will not be able to run on GPU." ])) dcn_cuda_ready = False