Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mllama-3.2 Interactive Demo Failed to Read List of Strings Image Files #2669

Open
ekaakurniawan opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@ekaakurniawan
Copy link

Describe the bug
When selecting input image, I have the files variable as follow.

files = ['/path/to/input/image.png']

The following code will check files[-1] which is in string data type and not list or tuple. Then it will return error due to the str object has no attribute path.

image = files[-1] if isinstance(files[-1], (list, tuple)) else files[-1].path

Expected behavior
The input image file with string data type from local directory should not fail.

Possible fix
Removing select last from files list fixed the issue for me. Sample as follow. Not sure about the last files with .path. What data type it is?

                image = files[-1] if isinstance(files, (list, tuple)) else files[-1].path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant