Skip to content

Problem in Paddle initialization #84

@deadpipe

Description

@deadpipe

Installed Magma in WSL (ubuntu-22)
Cuda 12.1, python 3.10

After installing and running python agents/ui_agent/app.py, I encounter the following error:

(venv) badapadda@DESKTOP-UHHHGJ4:~/AI/model-testing/magma8b/Magma$ CUDA_VISIBLE_DEVICES=0 python agents/ui_agent/app.py
Traceback (most recent call last):
  File "/home/badapadda/AI/model-testing/magma8b/Magma/agents/ui_agent/app.py", line 18, in <module>
    from util.utils import check_ocr_box, get_yolo_model, get_caption_model_processor, get_som_labeled_img
  File "/home/badapadda/AI/model-testing/magma8b/Magma/agents/ui_agent/util/utils.py", line 22, in <module>
    paddle_ocr = PaddleOCR(
  File "/home/badapadda/AI/model-testing/magma8b/venv/lib/python3.10/site-packages/paddleocr/_pipelines/ocr.py", line 144, in __init__
    super().__init__(**base_params)
  File "/home/badapadda/AI/model-testing/magma8b/venv/lib/python3.10/site-packages/paddleocr/_pipelines/base.py", line 69, in __init__
    self._common_args = parse_common_args(
  File "/home/badapadda/AI/model-testing/magma8b/venv/lib/python3.10/site-packages/paddleocr/_common_args.py", line 43, in parse_common_args
    raise ValueError(f"Unknown argument: {name}")
ValueError: Unknown argument: det_db_score_mode


(venv) badapadda@DESKTOP-UHHHGJ4:~/AI/model-testing/magma8b/Magma$ CUDA_VISIBLE_DEVICES=0 python agents/ui_agent/app.py
Traceback (most recent call last):
  File "/home/badapadda/AI/model-testing/magma8b/Magma/agents/ui_agent/app.py", line 18, in <module>
    from util.utils import check_ocr_box, get_yolo_model, get_caption_model_processor, get_som_labeled_img
  File "/home/badapadda/AI/model-testing/magma8b/Magma/agents/ui_agent/util/utils.py", line 22, in <module>
    paddle_ocr = PaddleOCR(
  File "/home/badapadda/AI/model-testing/magma8b/venv/lib/python3.10/site-packages/paddleocr/_pipelines/ocr.py", line 144, in __init__
    super().__init__(**base_params)
  File "/home/badapadda/AI/model-testing/magma8b/venv/lib/python3.10/site-packages/paddleocr/_pipelines/base.py", line 69, in __init__
    self._common_args = parse_common_args(
  File "/home/badapadda/AI/model-testing/magma8b/venv/lib/python3.10/site-packages/paddleocr/_common_args.py", line 43, in parse_common_args
    raise ValueError(f"Unknown argument: {name}")
ValueError: Unknown argument: show_log

I am using paddleocr==3.0.1

I get the same error when I installed Magma UI

if anyone can help me out, that will be very much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions