[GH-ISSUE #50] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\Documents\\GitHub\\DeepSeek-VL2\\images\\mi_2.jpeg' #38

Open
opened 2026-10-26 21:10:40 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @LIRUILONGS on GitHub (Feb 2, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL2/issues/50

Demo 照片找不到

Load deepseek-ai/deepseek-vl2-tiny successfully...
IMPORTANT: You are using gradio version 3.48.0, however version 4.44.1 is available, please upgrade.
--------
Traceback (most recent call last):
  File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\web_demo.py", line 662, in <module>
    demo = build_demo(args)
  File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\web_demo.py", line 582, in build_demo
    examples=format_examples(examples_list),
  File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\web_demo.py", line 577, in format_examples
    examples.append([images, display_example(images), texts])
  File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\deepseek_vl2\serve\app_modules\utils.py", line 319, in display_example
    image = Image.open(img_path)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 3431, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\Documents\\GitHub\\DeepSeek-VL2\\images\\mi_2.jpeg'
PS C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2> 
# multi-images
    [
        [
            "images/multi_image_1.jpeg",
            "images/mi_2.jpeg",
            "images/mi_3.jpeg"
        ],
        "能帮我用这几个食材做一道菜吗?",
    ]

解决办法,需要更正路径

# multi-images
    [
        [
            "images/multi_image_1.jpeg",
            "images/multi_image_2.jpeg",
            "images/multi_image_3.jpeg"
        ],
        "能帮我用这几个食材做一道菜吗?",
    ]
Originally created by @LIRUILONGS on GitHub (Feb 2, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL2/issues/50 Demo 照片找不到 ```bash Load deepseek-ai/deepseek-vl2-tiny successfully... IMPORTANT: You are using gradio version 3.48.0, however version 4.44.1 is available, please upgrade. -------- Traceback (most recent call last): File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\web_demo.py", line 662, in <module> demo = build_demo(args) File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\web_demo.py", line 582, in build_demo examples=format_examples(examples_list), File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\web_demo.py", line 577, in format_examples examples.append([images, display_example(images), texts]) File "C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2\deepseek_vl2\serve\app_modules\utils.py", line 319, in display_example image = Image.open(img_path) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 3431, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Administrator\\Documents\\GitHub\\DeepSeek-VL2\\images\\mi_2.jpeg' PS C:\Users\Administrator\Documents\GitHub\DeepSeek-VL2> ``` ```py # multi-images [ [ "images/multi_image_1.jpeg", "images/mi_2.jpeg", "images/mi_3.jpeg" ], "能帮我用这几个食材做一道菜吗?", ] ``` 解决办法,需要更正路径 ```py # multi-images [ [ "images/multi_image_1.jpeg", "images/multi_image_2.jpeg", "images/multi_image_3.jpeg" ], "能帮我用这几个食材做一道菜吗?", ] ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-VL2#38
No description provided.