Guest User

Untitled

a guest
Dec 14th, 2025
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1. 2025-12-14 23:43:56.938 | INFO | manga_ocr.ocr:__init__:16 - Loading OCR model from kha-white/manga-ocr-base
  2. Traceback (most recent call last):
  3. File "/usr/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 550, in hf_raise_for_status
  4. response.raise_for_status()
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  6. File "/usr/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
  7. raise HTTPStatusError(message, request=request, response=self)
  8. httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://huggingface.co/api/models/kha-white/manga-ocr-base/tree/main/additional_chat_templates?recursive=false&expand=false'
  9. For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
  10.  
  11. The above exception was the direct cause of the following exception:
  12.  
  13. Traceback (most recent call last):
  14. File "/usr/bin/manga_ocr", line 8, in <module>
  15. sys.exit(main())
  16. ~~~~^^
  17. File "/usr/lib/python3.13/site-packages/manga_ocr/__main__.py", line 7, in main
  18. fire.Fire(run)
  19. ~~~~~~~~~^^^^^
  20. File "/usr/lib/python3.13/site-packages/fire/core.py", line 135, in Fire
  21. component_trace = _Fire(component, args, parsed_flag_args, context, name)
  22. File "/usr/lib/python3.13/site-packages/fire/core.py", line 468, in _Fire
  23. component, remaining_args = _CallAndUpdateTrace(
  24. ~~~~~~~~~~~~~~~~~~~^
  25. component,
  26. ^^^^^^^^^^
  27. ...<2 lines>...
  28. treatment='class' if is_class else 'routine',
  29. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  30. target=component.__name__)
  31. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  32. File "/usr/lib/python3.13/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
  33. component = fn(*varargs, **kwargs)
  34. File "/usr/lib/python3.13/site-packages/manga_ocr/run.py", line 67, in run
  35. mocr = MangaOcr(pretrained_model_name_or_path, force_cpu)
  36. File "/usr/lib/python3.13/site-packages/manga_ocr/ocr.py", line 18, in __init__
  37. self.tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path)
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  39. File "/usr/lib/python3.13/site-packages/transformers/models/auto/tokenization_auto.py", line 1140, in from_pretrained
  40. return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
  41. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  42. File "/usr/lib/python3.13/site-packages/transformers/tokenization_utils_base.py", line 2038, in from_pretrained
  43. for template in list_repo_templates(
  44. ~~~~~~~~~~~~~~~~~~~^
  45. pretrained_model_name_or_path,
  46. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  47. ...<3 lines>...
  48. token=token,
  49. ^^^^^^^^^^^^
  50. ):
  51. ^
  52. File "/usr/lib/python3.13/site-packages/transformers/utils/hub.py", line 169, in list_repo_templates
  53. for entry in list_repo_tree(
  54. ~~~~~~~~~~~~~~^
  55. repo_id=repo_id,
  56. ^^^^^^^^^^^^^^^^
  57. ...<3 lines>...
  58. token=token,
  59. ^^^^^^^^^^^^
  60. )
  61. ^
  62. File "/usr/lib/python3.13/site-packages/huggingface_hub/hf_api.py", line 3080, in list_repo_tree
  63. for path_info in paginate(path=tree_url, headers=headers, params={"recursive": recursive, "expand": expand}):
  64. ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  65. File "/usr/lib/python3.13/site-packages/huggingface_hub/utils/_pagination.py", line 37, in paginate
  66. hf_raise_for_status(r)
  67. ~~~~~~~~~~~~~~~~~~~^^^
  68. File "/usr/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 564, in hf_raise_for_status
  69. raise _format(RemoteEntryNotFoundError, message, response) from e
  70. huggingface_hub.errors.RemoteEntryNotFoundError: 404 Client Error. (Request ID: Root=1-693f920d-1febfb457bdb85963134c035;fe74eecd-1568-4e31-9a61-c2d63a9f864e)
  71.  
  72. Entry Not Found for url: https://huggingface.co/api/models/kha-white/manga-ocr-base/tree/main/additional_chat_templates?recursive=false&expand=false.
  73. additional_chat_templates does not exist on "main"
Advertisement
Add Comment
Please, Sign In to add comment