PanelCleaner icon indicating copy to clipboard operation
PanelCleaner copied to clipboard

failed to load OCR model. OCR impossible, moderate cleaning impact

Open NKJibu02 opened this issue 11 months ago • 3 comments

2025-01-20 07:24:51.237 | INFO | pcleaner.cli_utils:dump_system_info:292 -

  • Program Information - Program: Panel Cleaner 2.11.4 Executing from: C:\Users<username>\Downloads\PanelCleaner-Windows-2.11.4_unzip_me_internal\pcleaner\gui\launcher.pyc Log file: C:\Users<username>\AppData\Roaming\pcleaner\cache\pcleaner.log Config file: C:\Users<username>\AppData\Roaming\pcleaner\pcleanerconfig.ini Cache directory: C:\Users<username>\AppData\Roaming\pcleaner\cache
  • System Information - Operating System: Windows 10 Python Version: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] PySide (Qt) Version: 6.7.2 Available Qt Themes: windows11, windowsvista, Windows, Fusion Current Qt Theme: System Default Current Icon Theme: System Default System locale: en_US Architecture: AMD64 CPU Cores: 4 Memory: 7.87 GiB Swap: 1.25 GiB GPU: None (CUDA not available)

2025-01-20 07:24:51.237 | INFO | pcleaner.cli_utils:dump_system_info:292 -

  • Program Information - Program: Panel Cleaner 2.11.4 Executing from: C:\Users<username>\Downloads\PanelCleaner-Windows-2.11.4_unzip_me_internal\pcleaner\gui\launcher.pyc Log file: C:\Users<username>\AppData\Roaming\pcleaner\cache\pcleaner.log Config file: C:\Users<username>\AppData\Roaming\pcleaner\pcleanerconfig.ini Cache directory: C:\Users<username>\AppData\Roaming\pcleaner\cache
  • System Information - Operating System: Windows 10 Python Version: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] PySide (Qt) Version: 6.7.2 Available Qt Themes: windows11, windowsvista, Windows, Fusion Current Qt Theme: System Default Current Icon Theme: System Default System locale: en_US Architecture: AMD64 CPU Cores: 4 Memory: 7.87 GiB Swap: 1.25 GiB GPU: None (CUDA not available)

2025-01-20 07:24:51.815 | INFO | pcleaner.gui.launcher:launch:70 - Using locale en_US. 2025-01-20 07:24:51.815 | INFO | pcleaner.gui.launcher:launch:70 - Using locale en_US. 2025-01-20 07:24:51.815 | DEBUG | pcleaner.gui.launcher:launch:77 - Loaded built-in Qt translations for en_US. 2025-01-20 07:24:51.815 | DEBUG | pcleaner.gui.launcher:launch:77 - Loaded built-in Qt translations for en_US. 2025-01-20 07:24:51.815 | DEBUG | pcleaner.gui.launcher:launch:85 - Loaded built-in Qt base translations for en_US. 2025-01-20 07:24:51.815 | DEBUG | pcleaner.gui.launcher:launch:85 - Loaded built-in Qt base translations for en_US. 2025-01-20 07:24:55.268 | DEBUG | pcleaner.gui.mainwindow_driver:ensure_models_downloaded:478 - Text detector model already downloaded. 2025-01-20 07:24:55.268 | DEBUG | pcleaner.gui.mainwindow_driver:ensure_models_downloaded:478 - Text detector model already downloaded. 2025-01-20 07:24:55.283 | DEBUG | pcleaner.gui.mainwindow_driver:initialize_ui:288 - Purging missing profiles. 2025-01-20 07:24:55.283 | DEBUG | pcleaner.gui.mainwindow_driver:initialize_ui:288 - Purging missing profiles. 2025-01-20 07:24:55.283 | INFO | pcleaner.gui.mainwindow_driver:initialize_profiles:1238 - Found profiles: [('Default', None), ('005', WindowsPath('C:/Users//AppData/Roaming/pcleaner/profiles/005.conf'))] 2025-01-20 07:24:55.283 | INFO | pcleaner.gui.mainwindow_driver:initialize_profiles:1238 - Found profiles: [('Default', None), ('005', WindowsPath('C:/Users//AppData/Roaming/pcleaner/profiles/005.conf'))] 2025-01-20 07:24:55.283 | DEBUG | pcleaner.config:load_profile:1361 - Loading profile None... 2025-01-20 07:24:55.283 | DEBUG | pcleaner.config:load_profile:1361 - Loading profile None... 2025-01-20 07:24:55.283 | DEBUG | pcleaner.config:load_profile:1368 - Loading builtin default profile 2025-01-20 07:24:55.283 | DEBUG | pcleaner.config:load_profile:1368 - Loading builtin default profile 2025-01-20 07:24:55.393 | DEBUG | pcleaner.gui.mainwindow_driver:load_current_profile:1398 - Loading current profile. 2025-01-20 07:24:55.393 | DEBUG | pcleaner.gui.mainwindow_driver:load_current_profile:1398 - Loading current profile. 2025-01-20 07:24:55.393 | DEBUG | pcleaner.gui.profile_parser:set_profile_values:565 - Setting profile values 2025-01-20 07:24:55.393 | DEBUG | pcleaner.gui.profile_parser:set_profile_values:565 - Setting profile values 2025-01-20 07:24:55.549 | DEBUG | pcleaner.gui.mainwindow_driver:apply_profile:1532 - Applying profile. 2025-01-20 07:24:55.549 | DEBUG | pcleaner.gui.mainwindow_driver:apply_profile:1532 - Applying profile. 2025-01-20 07:24:55.549 | DEBUG | pcleaner.gui.profile_parser:set_profile_values:565 - Setting profile values 2025-01-20 07:24:55.549 | DEBUG | pcleaner.gui.profile_parser:set_profile_values:565 - Setting profile values 2025-01-20 07:24:55.549 | ERROR | pcleaner.ocr.ocr_tesseract:available_langs:32 - Error checking Tesseract available language data: tesseract is not installed or it's not in your PATH. See README file for more information. 2025-01-20 07:24:55.549 | ERROR | pcleaner.ocr.ocr_tesseract:available_langs:32 - Error checking Tesseract available language data: tesseract is not installed or it's not in your PATH. See README file for more information. 2025-01-20 07:24:55.549 | DEBUG | pcleaner.gui.mainwindow_driver:initialize_analytics_view:823 - Loading included font from C:\Users<username>\Downloads\PanelCleaner-Windows-2.11.4_unzip_me_internal\pcleaner\data\NotoMono-Regular.ttf 2025-01-20 07:24:55.549 | DEBUG | pcleaner.gui.mainwindow_driver:initialize_analytics_view:823 - Loading included font from C:\Users<username>\Downloads\PanelCleaner-Windows-2.11.4_unzip_me_internal\pcleaner\data\NotoMono-Regular.ttf 2025-01-20 07:24:55.565 | DEBUG | pcleaner.gui.mainwindow_driver:initialize_analytics_view:826 - Loaded included font 2025-01-20 07:24:55.565 | DEBUG | pcleaner.gui.mainwindow_driver:initialize_analytics_view:826 - Loaded included font 2025-01-20 07:24:55.565 | DEBUG | pcleaner.gui.mainwindow_driver:update_post_action_drawer:1051 - Updating post action drawer: None 2025-01-20 07:24:55.565 | DEBUG | pcleaner.gui.mainwindow_driver:update_post_action_drawer:1051 - Updating post action drawer: None 2025-01-20 07:24:55.580 | DEBUG | pcleaner.gui.mainwindow_driver:save_default_palette:177 - Placeholder color: #000000 2025-01-20 07:24:55.580 | DEBUG | pcleaner.gui.mainwindow_driver:save_default_palette:177 - Placeholder color: #000000 2025-01-20 07:24:55.580 | INFO | pcleaner.gui.mainwindow_driver:save_default_palette:181 - Default Qt Style: windowsvista 2025-01-20 07:24:55.580 | INFO | pcleaner.gui.mainwindow_driver:save_default_palette:181 - Default Qt Style: windowsvista 2025-01-20 07:24:55.580 | INFO | pcleaner.gui.mainwindow_driver:save_default_palette:182 - Default Icon Theme: breeze 2025-01-20 07:24:55.580 | INFO | pcleaner.gui.mainwindow_driver:save_default_palette:182 - Default Icon Theme: breeze 2025-01-20 07:24:55.580 | INFO | pcleaner.gui.mainwindow_driver:set_theme:205 - Using theme: breeze-dark 2025-01-20 07:24:55.580 | INFO | pcleaner.gui.mainwindow_driver:set_theme:205 - Using theme: breeze-dark 2025-01-20 07:24:55.830 | INFO | pcleaner.gui.mainwindow_driver:changeEvent:269 - Theme is dark: True 2025-01-20 07:24:55.830 | INFO | pcleaner.gui.mainwindow_driver:changeEvent:269 - Theme is dark: True 2025-01-20 07:24:55.846 | DEBUG | pcleaner.gui.mainwindow_driver:update_post_action_drawer:1051 - Updating post action drawer: None 2025-01-20 07:24:55.846 | DEBUG | pcleaner.gui.mainwindow_driver:update_post_action_drawer:1051 - Updating post action drawer: None 2025-01-20 07:24:55.846 | INFO | pcleaner.gui.mainwindow_driver:set_theme:246 - Theme is dark: True 2025-01-20 07:24:55.846 | INFO | pcleaner.gui.mainwindow_driver:set_theme:246 - Theme is dark: True 2025-01-20 07:24:55.861 | DEBUG | pcleaner.gui.mainwindow_driver:update_post_action_drawer:1051 - Updating post action drawer: None 2025-01-20 07:24:55.861 | DEBUG | pcleaner.gui.mainwindow_driver:update_post_action_drawer:1051 - Updating post action drawer: None 2025-01-20 07:24:55.986 | DEBUG | pcleaner.gui.mainwindow_driver:post_init:551 - Char width: 6, columns: 74, required width: 444 2025-01-20 07:24:55.986 | DEBUG | pcleaner.gui.mainwindow_driver:post_init:551 - Char width: 6, columns: 74, required width: 444 2025-01-20 07:24:55.986 | DEBUG | pcleaner.gui.mainwindow_driver:post_init:582 - Splitter sizes: [400, 500, 460] 2025-01-20 07:24:55.986 | DEBUG | pcleaner.gui.mainwindow_driver:post_init:582 - Splitter sizes: [400, 500, 460] 2025-01-20 07:24:56.018 | DEBUG | pcleaner.gui.state_saver:restore:106 - Restored state for Mainwindow 2025-01-20 07:24:56.018 | DEBUG | pcleaner.gui.state_saver:restore:106 - Restored state for Mainwindow 2025-01-20 07:24:56.018 | DEBUG | pcleaner.gui.mainwindow_driver:start_initialization_worker:711 - Worker Thread cleaning cache 2025-01-20 07:24:56.018 | DEBUG | pcleaner.gui.mainwindow_driver:start_initialization_worker:711 - Worker Thread cleaning cache 2025-01-20 07:24:56.018 | DEBUG | pcleaner.gui.mainwindow_driver:start_initialization_worker:718 - Worker Thread loading OCR model. 2025-01-20 07:24:56.018 | DEBUG | pcleaner.gui.mainwindow_driver:start_initialization_worker:718 - Worker Thread loading OCR model. 2025-01-20 07:24:56.018 | INFO | pcleaner.gui.mainwindow_driver:clean_cache:808 - Cleaning image cache. 2025-01-20 07:24:56.018 | INFO | pcleaner.ocr.ocr_mangaocr:new:17 - Creating the MangaOcr instance 2025-01-20 07:24:56.018 | INFO | pcleaner.gui.mainwindow_driver:clean_cache:808 - Cleaning image cache. 2025-01-20 07:24:56.018 | INFO | pcleaner.ocr.ocr_mangaocr:new:17 - Creating the MangaOcr instance 2025-01-20 07:24:56.018 | INFO | manga_ocr.ocr:init:13 - Loading OCR model from kha-white/manga-ocr-base 2025-01-20 07:24:56.018 | INFO | manga_ocr.ocr:init:13 - Loading OCR model from kha-white/manga-ocr-base 2025-01-20 07:25:07.792 | CRITICAL | pcleaner.gui.mainwindow_driver:generic_worker_error:746 - Failed to load OCR model. OCR impossible, moderate cleaning impact.

Encountered error: Traceback (most recent call last):

File "urllib3\connectionpool.py", line 468, in _make_request

File "urllib3\connectionpool.py", line 1097, in _validate_conn

File "urllib3\connection.py", line 642, in connect

File "urllib3\connection.py", line 783, in _ssl_wrap_socket_and_match_hostname

File "urllib3\util\ssl_.py", line 471, in ssl_wrap_socket

File "urllib3\util\ssl_.py", line 515, in _ssl_wrap_socket_impl

File "ssl.py", line 517, in wrap_socket

File "ssl.py", line 1075, in _create

File "ssl.py", line 1346, in do_handshake

TimeoutError: _ssl.c:975: The handshake operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "requests\adapters.py", line 486, in send

File "urllib3\connectionpool.py", line 845, in urlopen

File "urllib3\util\retry.py", line 470, in increment

File "urllib3\util\util.py", line 39, in reraise

File "urllib3\connectionpool.py", line 791, in urlopen

File "urllib3\connectionpool.py", line 492, in _make_request

File "urllib3\connectionpool.py", line 470, in _make_request

File "urllib3\connectionpool.py", line 371, in _raise_timeout

urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='cdn-lfs.hf.co', port=443): Read timed out. (read timeout=10.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "pcleaner\gui\worker_thread.py", line 141, in run

File "pcleaner\gui\mainwindow_driver.py", line 733, in load_ocr_model

File "pcleaner\ocr\ocr_mangaocr.py", line 37, in initialize_model

File "manga_ocr\ocr.py", line 16, in init

File "transformers\models\vision_encoder_decoder\modeling_vision_encoder_decoder.py", line 358, in from_pretrained

File "transformers\modeling_utils.py", line 3057, in from_pretrained

File "transformers\utils\hub.py", line 430, in cached_file

File "huggingface_hub\utils_validators.py", line 118, in _inner_fn

File "huggingface_hub\file_download.py", line 1431, in hf_hub_download

File "huggingface_hub\file_download.py", line 515, in http_get

File "huggingface_hub\file_download.py", line 452, in _request_wrapper

File "huggingface_hub\utils_http.py", line 274, in http_backoff

File "huggingface_hub\utils_http.py", line 258, in http_backoff

File "requests\sessions.py", line 589, in request

File "requests\sessions.py", line 703, in send

File "huggingface_hub\utils_http.py", line 63, in send

File "requests\adapters.py", line 532, in send

requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='cdn-lfs.hf.co', port=443): Read timed out. (read timeout=10.0)"), '(Request ID: a0476d17-9d50-49dd-acec-d73423742231)') 2025-01-20 07:25:07.792 | CRITICAL | pcleaner.gui.mainwindow_driver:generic_worker_error:746 - Failed to load OCR model. OCR impossible, moderate cleaning impact.

Encountered error: Traceback (most recent call last):

File "urllib3\connectionpool.py", line 468, in _make_request

File "urllib3\connectionpool.py", line 1097, in _validate_conn

File "urllib3\connection.py", line 642, in connect

File "urllib3\connection.py", line 783, in _ssl_wrap_socket_and_match_hostname

File "urllib3\util\ssl_.py", line 471, in ssl_wrap_socket

File "urllib3\util\ssl_.py", line 515, in _ssl_wrap_socket_impl

File "ssl.py", line 517, in wrap_socket

File "ssl.py", line 1075, in _create

File "ssl.py", line 1346, in do_handshake

TimeoutError: _ssl.c:975: The handshake operation timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "requests\adapters.py", line 486, in send

File "urllib3\connectionpool.py", line 845, in urlopen

File "urllib3\util\retry.py", line 470, in increment

File "urllib3\util\util.py", line 39, in reraise

File "urllib3\connectionpool.py", line 791, in urlopen

File "urllib3\connectionpool.py", line 492, in _make_request

File "urllib3\connectionpool.py", line 470, in _make_request

File "urllib3\connectionpool.py", line 371, in _raise_timeout

urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='cdn-lfs.hf.co', port=443): Read timed out. (read timeout=10.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "pcleaner\gui\worker_thread.py", line 141, in run

File "pcleaner\gui\mainwindow_driver.py", line 733, in load_ocr_model

File "pcleaner\ocr\ocr_mangaocr.py", line 37, in initialize_model

File "manga_ocr\ocr.py", line 16, in init

File "transformers\models\vision_encoder_decoder\modeling_vision_encoder_decoder.py", line 358, in from_pretrained

File "transformers\modeling_utils.py", line 3057, in from_pretrained

File "transformers\utils\hub.py", line 430, in cached_file

File "huggingface_hub\utils_validators.py", line 118, in _inner_fn

File "huggingface_hub\file_download.py", line 1431, in hf_hub_download

File "huggingface_hub\file_download.py", line 515, in http_get

File "huggingface_hub\file_download.py", line 452, in _request_wrapper

File "huggingface_hub\utils_http.py", line 274, in http_backoff

File "huggingface_hub\utils_http.py", line 258, in http_backoff

File "requests\sessions.py", line 589, in request

File "requests\sessions.py", line 703, in send

File "huggingface_hub\utils_http.py", line 63, in send

File "requests\adapters.py", line 532, in send

requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='cdn-lfs.hf.co', port=443): Read timed out. (read timeout=10.0)"), '(Request ID: a0476d17-9d50-49dd-acec-d73423742231)')

NKJibu02 avatar Jan 20 '25 06:01 NKJibu02

The download failed for some reason, odd. Does the issue persist or was this temporary?

VoxelCubes avatar Jan 20 '25 09:01 VoxelCubes

It persisted for a while then i noticed there was a settings i saved and loaded it and it works but when i use any other settings it doesn't work i checked to see if it was a settings i changed but noticed nothing happened

NKJibu02 avatar Jan 20 '25 17:01 NKJibu02

What do you mean by settings? A profile that disables OCR woukd of course not check the OCR. The error here claims to be a timed out connection, it couldn't reach the server. Maybe the model moved? I'll investigate tomorrow.

VoxelCubes avatar Jan 20 '25 22:01 VoxelCubes