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

Fix undesired behavior of transform.PreprocessCfg #694

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

bryant1410
Copy link
Contributor

This PR fixes 2 things in transform.PreprocessCfg:

  • An assert on mode was incorrectly checked. Note that (var) isn't the same as (var,). The former is the same as var, with redundant parentheses. The assert was working because the following is true "RGB in "RGB".
  • PreprocessCfg.num_channels is not a function but a property, so it doesn't carry parentheses.

@rwightman rwightman merged commit dc463ae into mlfoundations:main Oct 23, 2023
5 checks passed
@bryant1410 bryant1410 deleted the patch-1 branch October 23, 2023 16:21
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

Successfully merging this pull request may close these issues.

2 participants