-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Deeplabv3 model builders accept unused **kwargs parameter. #5883
Comments
I believe this is done across all model builders and kept there for consistency (all other builders do it). For example |
Thanks for the context. Do you think it still makes sense to keep |
Good question. Obviously here the only argument for keeping it is to be consistent with the other model builders. Every other model builder supports is because it redirects the params to the model class. In segmentation we dont do it because the model classes don't receive too many extra parameters. I see 2 options:
Both have cons. For example in (1) will lead to putting unnecessary Frankly I don't have a strong opinion over that. Happy to go with whatever you decide. |
Cross linking #5001 (comment) since we had this discussion before. |
Not sure if this is by design or a minor bug, but the deeplabV3 model builders accept a
**kwargs
parameter and do not use it.https://github.com/pytorch/vision/blob/d425f007782051ab08e9c0fbfe06b072313f4649/torchvision/models/segmentation/deeplabv3.py#L222:L222
@datumbox should we remove these?
The text was updated successfully, but these errors were encountered: