Machine Learning v1.49 Incorrect image format

Trying to figure out what is wrong here.
immich_machine_learning.1.jv40jwpsg5u0@node-hp | ValueError: Incorrect format used for image. Should be an url linking to an image, a local path, or a PIL image.
immich_machine_learning.1.jv40jwpsg5u0@node-hp | 10.0.10.3 - - [01/Mar/2023 03:20:00] "POST /object-detection/detect-object HTTP/1.1" 500 -
immich_machine_learning.1.jv40jwpsg5u0@node-hp | ValueError: Incorrect format used for image. Should be an url linking to an image, a local path, or a PIL image.
immich_machine_learning.1.jv40jwpsg5u0@node-hp | 10.0.10.3 - - [01/Mar/2023 03:20:00] "POST /object-detection/detect-object HTTP/1.1" 500 -
10 Replies
Alex Tran
Alex Tran3y ago
hmm What is your docker-compose file look like?
EnochPrime
EnochPrimeOP3y ago
Pastebin
version: "3.9"# swarm deployment extensionx-deploy-swarm: &deploy_s...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
jrasm91
jrasm913y ago
Are there any server logs? It almost looks like the image path passed to the ML container was empty
EnochPrime
EnochPrimeOP3y ago
I see a lot of this message from microservices:
immich_microservices.1.4jyrkkw2dvx9@node-hp | [Nest] 1 - 03/01/2023,
3:23:29 AM ERROR Failed to trigger object detection pipe line Error: Request failed with status code 500
immich_microservices.1.4jyrkkw2dvx9@node-hp | [Nest] 1 - 03/01/2023,
3:23:29 AM ERROR Failed to trigger object detection pipe line Error: Request failed with status code 500
jrasm91
jrasm913y ago
That'll correspond to the other error you posted. You don't see any errors related to thumbnail generation? Might be worth updating to 1.50. I know in that version we print out the asset id for failures which you can use to find the path and make sure it exists.
EnochPrime
EnochPrimeOP3y ago
Not seeing anything thumbnail related. I'll give 1.50 a go.
jrasm91
jrasm913y ago
It looks like the stack trace, from what I can tell, it is unable to open the provided input file. So either it is null or otherwise invalid, or it refers to an file that doesn't exist on disk I've only seen that locally when I have deleted files directly from disk
EnochPrime
EnochPrimeOP3y ago
And of course v1.50.1 appears to just be working without issue.
jrasm91
jrasm913y ago
Lol I know in 1.50 the is a check for an thumbnail path. Not sure if the previous version had that or not

Did you find this page helpful?