Skip to content

A question regarding the RandomCrop #61

@LXXXXR

Description

@LXXXXR

Hi,

Thank you for the work. Just wanna share a tiny issue that confuses me.

if width == original_width and height == original_height:
return self._fallback(img) # https://github.com/tensorflow/tpu/blob/master/models/official/efficientnet/preprocessing.py#L102

The function seems to fall back on central crop once the condition is satisfied, however in the original efficientet code, the function only falls back after max_attempts when the condition is satisfied.

It would be great if you could kindly take a look. Thank you.

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