[GH-ISSUE #1620] llava (and llava:13b) requires to add an image (though the image path has been given) #47412

Closed
opened 2026-04-28 03:45:11 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @yuan2ai on GitHub (Dec 20, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1620

The issue is as described in Title, and more details are as follows:

    (base) vncer@jx8122:/buffer1/codes$ sudo docker exec -it ollama ollama run llava        
    >>> what is in this image? /home/vncer/Documents/d2.png
    This model requires you to add a jpeg, png, or svg image.
    >>> what is in this image? '/home/vncer/Documents/d2.png'
    This model requires you to add a jpeg, png, or svg image.
    >>> what is in this image? "/home/vncer/Documents/d2.png"
    This model requires you to add a jpeg, png, or svg image.
    >>> "/home/vncer/Documents/d2.png"
    This model requires you to add a jpeg, png, or svg image.
    >>> '/home/vncer/Documents/d2.png'
    This model requires you to add a jpeg, png, or svg image.
    >>> /home/vncer/Documents/d2.png
    Unknown command '/home/vncer/Documents/d2.png'. Type /? for help
    >>> /home/vncer/Documents/d2.png what is in this image
    Unknown command '/home/vncer/Documents/d2.png'. Type /? for help

    *the image path is correct.

System Info:
ollama version is 0.1.17
ollama installation: docker (sudo docker exec -it ollama ollama run llava)
operating system: Ubuntu 22

Extra Info:
I have used ollama to run dolphin-mixtral, and it works well. No problem at all.

Can anyone help? Thanks so much!

Originally created by @yuan2ai on GitHub (Dec 20, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1620 The issue is as described in Title, and more details are as follows: (base) vncer@jx8122:/buffer1/codes$ sudo docker exec -it ollama ollama run llava >>> what is in this image? /home/vncer/Documents/d2.png This model requires you to add a jpeg, png, or svg image. >>> what is in this image? '/home/vncer/Documents/d2.png' This model requires you to add a jpeg, png, or svg image. >>> what is in this image? "/home/vncer/Documents/d2.png" This model requires you to add a jpeg, png, or svg image. >>> "/home/vncer/Documents/d2.png" This model requires you to add a jpeg, png, or svg image. >>> '/home/vncer/Documents/d2.png' This model requires you to add a jpeg, png, or svg image. >>> /home/vncer/Documents/d2.png Unknown command '/home/vncer/Documents/d2.png'. Type /? for help >>> /home/vncer/Documents/d2.png what is in this image Unknown command '/home/vncer/Documents/d2.png'. Type /? for help *the image path is correct. System Info: ollama version is 0.1.17 ollama installation: docker (sudo docker exec -it ollama ollama run llava) operating system: Ubuntu 22 Extra Info: I have used ollama to run dolphin-mixtral, and it works well. No problem at all. Can anyone help? Thanks so much!
Author
Owner

@igorschlum commented on GitHub (Dec 20, 2023):

Hi @yuan2ai , Try using a colon (:)

Describe this image: /home/vncer/Documents/d2.png

<!-- gh-comment-id:1863805048 --> @igorschlum commented on GitHub (Dec 20, 2023): Hi @yuan2ai , Try using a colon (:) Describe this image: /home/vncer/Documents/d2.png
Author
Owner

@yuan2ai commented on GitHub (Dec 20, 2023):

Hi @yuan2ai , Try using a colon (:)

Describe this image: /home/vncer/Documents/d2.png

Thanks for your reply, while it still doesn't work from my side.

Describe this image: /home/vncer/Documents/d2.png
This model requires you to add a jpeg, png, or svg image.

<!-- gh-comment-id:1863823685 --> @yuan2ai commented on GitHub (Dec 20, 2023): > Hi @yuan2ai , Try using a colon (:) > > Describe this image: /home/vncer/Documents/d2.png Thanks for your reply, while it still doesn't work from my side. >>> Describe this image: /home/vncer/Documents/d2.png This model requires you to add a jpeg, png, or svg image.
Author
Owner

@igorschlum commented on GitHub (Dec 20, 2023):

What computer and OS are you using? How much memory is available?
Could you share the log?

<!-- gh-comment-id:1863915018 --> @igorschlum commented on GitHub (Dec 20, 2023): What computer and OS are you using? How much memory is available? Could you share the log?
Author
Owner

@yuan2ai commented on GitHub (Dec 20, 2023):

What computer and OS are you using? How much memory is available? Could you share the log?

Hi, issue resolved. Thanks.
I need to mount the folder of the container, with the -v option: sudo docker run -d --gpus=all -v ollama:/root/.ollama -v /home/vncer/Documents:/home/vncer/Documents -p 11434:11434 --name ollama ollama/ollama

<!-- gh-comment-id:1863930221 --> @yuan2ai commented on GitHub (Dec 20, 2023): > What computer and OS are you using? How much memory is available? Could you share the log? Hi, issue resolved. Thanks. I need to mount the folder of the container, with the -v option: sudo docker run -d --gpus=all -v ollama:/root/.ollama -v /home/vncer/Documents:/home/vncer/Documents -p 11434:11434 --name ollama ollama/ollama
Author
Owner

@yuan2ai commented on GitHub (Dec 20, 2023):

Always mount the correct folder when using docker.

<!-- gh-comment-id:1863930911 --> @yuan2ai commented on GitHub (Dec 20, 2023): Always mount the correct folder when using docker.
Author
Owner

@dhenson02 commented on GitHub (Jan 6, 2024):

What computer and OS are you using? How much memory is available? Could you share the log?

Hi, issue resolved. Thanks. I need to mount the folder of the container, with the -v option: sudo docker run -d --gpus=all -v ollama:/root/.ollama -v /home/vncer/Documents:/home/vncer/Documents -p 11434:11434 --name ollama ollama/ollama

lol yeah the error is useless. this fixed it for me too (wasn't targeting the right dir)

<!-- gh-comment-id:1879580853 --> @dhenson02 commented on GitHub (Jan 6, 2024): > > What computer and OS are you using? How much memory is available? Could you share the log? > > Hi, issue resolved. Thanks. I need to mount the folder of the container, with the -v option: sudo docker run -d --gpus=all -v ollama:/root/.ollama -v /home/vncer/Documents:/home/vncer/Documents -p 11434:11434 --name ollama ollama/ollama lol yeah the error is useless. this fixed it for me too (wasn't targeting the right dir)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47412