-
Notifications
You must be signed in to change notification settings - Fork 56
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
Error fetching images will fail the infer method #21
Comments
Thank you @eitantorf for letting us know. We're supposed to catch this and replace with the "default image" if the image is unavailable: m3inference/m3inference/m3twitter.py Lines 97 to 98 in b208bae
I'll have to look into it further. Would you be able to share an example of input and errant output? I'm curious if it is supposed to be a path to the default image but that the default image is unavailable or something else. |
Ah I see you fixed it, great. |
I'll check what on pip. Thanks, @eitantorf |
Thanks, @eitantorf and @computermacgyver! I have pushed the latest version to pypi. @eitantorf , could you try updating the package and see whether the issue persists? |
It might be worth extending this behavior to all image-related errors during inference. Here's one I just ran into where the file type can't be inferred, which causes the whole
It's probably worth not failing in those cases and just printing a warning. That, or adding some kind of pandas-like flag |
I am trying to run transform_jsonl (to download images and prepare m3 json file) and right after running the infer method - the issue occurs when transform_jsonl does not find some images but still writes the path to the m3 json file, causing the infer to fail over:
FileNotFoundError: [Errno 2] No such file or directory
The text was updated successfully, but these errors were encountered: