Skip to content

Is there a plan to add a registration mechanism to torchvision.models? #1143

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

Closed
zhiqwang opened this issue Jul 21, 2019 · 1 comment · Fixed by #6333
Closed

Is there a plan to add a registration mechanism to torchvision.models? #1143

zhiqwang opened this issue Jul 21, 2019 · 1 comment · Fixed by #6333

Comments

@zhiqwang
Copy link
Contributor

zhiqwang commented Jul 21, 2019

Hi,
As mentioned in the test scripts:

# TODO add a registration mechanism to torchvision.models

I want to know whether the registration mechanism is adding to ./torchvision/models/resnet.py or somewhere like this?

@fmassa
Copy link
Member

fmassa commented Jul 23, 2019

This is not yet 100% clear to me that it should be done.
But by registration mechanism I meant adding a way of retrieving all possible models from a particular category (say detection, or video). We currently have some hacks that yields everything under torchvision.models that are functions and do not start with an underscore, but this is fragile and might be better to consider a more robust way of doing this.

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