Skip to content
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

A question regarding the RandomCrop #61

Open
LXXXXR opened this issue May 27, 2021 · 0 comments
Open

A question regarding the RandomCrop #61

LXXXXR opened this issue May 27, 2021 · 0 comments

Comments

@LXXXXR
Copy link

LXXXXR commented May 27, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant