Skip to content

Faces: unsupported image type #137

Closed
@spicemint

Description

@spicemint

Describe the bug
When running the image classifier (doing it from cli) i get a bunch of errors

Classifier process output: Error: Expected image (BMP, JPEG, PNG, or GIF), but got unsupported image type
at getImageType (/var/lib/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/dist/image.js:351:15)
at Object.decodeImage (/var/lib/nextcloud/apps/recognize/node_modules/@tensorflow/tfjs-node/dist/image.js:196:21)
at main (/var/lib/nextcloud/apps/recognize/src/classifier_faces.js:64:28)

Result for IMG-20220119-WA0007.jpg = ["people"]

To Reproduce
Steps to reproduce the behavior:
run classifier (for images) from cli

Expected behavior
classify all images without any error, also would be great to know what image is creating the issue and why.

Recognize (please complete the following information):

  • JS-only mode: no
  • Enabled modes: object detection, face recognition

Server (please complete the following information):

  • Nextcloud: 22.2.3
  • OS: Arch Linux
  • RAM: 64GB
  • Processor Architecture x86

Additional context
latest recognize version 1.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions