Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Add preprocessing method that takes the raw image tensor #17

Description

@dimka11

I have tried with preprocessing method:

img_ = eval_driver.get_preprocess_fn()(tf.io.read_file(path))

But get constantly errors like:

{function_node __wrapped__ExtractJpegShape_device_/job:localhost/replica:0/task:0/device:CPU:0}} Invalid JPEG data, size 442707 [Op:ExtractJpegShape]
Not a JPEG file: starts with 0x89 0x50
{{function_node __wrapped__ExtractJpegShape_device_/job:localhost/replica:0/task:0/device:CPU:0}} Invalid JPEG data, size 328248 [Op:ExtractJpegShape]
{{function_node __wrapped__ExtractJpegShape_device_/job:localhost/replica:0/task:0/device:CPU:0}} Invalid JPEG data, size 156137 [Op:ExtractJpegShape]
Not a JPEG file: starts with 0x89 0x50
Not a JPEG file: starts with 0x89 0x50
{{function_node __wrapped__ExtractJpegShape_device_/job:localhost/replica:0/task:0/device:CPU:0}} Invalid JPEG data, size 258371 [Op:ExtractJpegShape

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions