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

Revert "ENH: replace star imports with imported names in train.py" #1273

Closed

Conversation

kaczmarj
Copy link
Contributor

Reverts #1266

hi @rwightman - #1266 introduces potentially unwanted behavior. if the current version of train.py with the current release of timm, then an ImportError is raised because of set_jit_fuser (added in f0f9ecc).

one solution is to revert #1266. or if this is not a problem for you, we can leave this (and we can close this pr). i wanted to document this behavior here.

@rwightman
Copy link
Collaborator

@kaczmarj oy, hmm.. how about leave loss explicit as is, and import timm.utils as utils ... and then use utils.setup_default_logging etc

@kaczmarj
Copy link
Contributor Author

good idea, i'll make a pr for that. thanks for your quick response.

@kaczmarj kaczmarj closed this May 26, 2022
@kaczmarj kaczmarj deleted the revert-1266-enh/no-star-imports branch May 26, 2022 12:49
kaczmarj added a commit to kaczmarj/pytorch-image-models that referenced this pull request May 26, 2022
This fixes buggy behavior introduced by
huggingface#1266.

Related to huggingface#1273.
rwightman pushed a commit that referenced this pull request Jun 13, 2022
This fixes buggy behavior introduced by
#1266.

Related to #1273.
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.

None yet

2 participants