Skip to content

Conversation

frgfm
Copy link
Contributor

@frgfm frgfm commented Jul 29, 2021

This PR adds a missing argument description for lraspp_mobilenet_v3_large.

Any feedback is welcome!

contains the same classes as Pascal VOC
progress (bool): If True, displays a progress bar of the download to stderr
num_classes (int): number of output classes of the model (including the background)
aux_loss (bool): If True, it uses an auxiliary loss
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR @frgfm

If you look just below we have

    if kwargs.pop("aux_loss", False):
        raise NotImplementedError('This model does not use auxiliary loss')

So documenting aux_loss is actually more confusing than anything. We should instead indicate how the kwargs argument is used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my bad, I misread, I thought the arg was declared outside of kwargs!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll be happy to consider a Pr for kwargs though, if you feel like it :) !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmmh, what do you have in mind?

Something like saying whose kwargs are those and mentioning the special case of aux_loss?

@frgfm frgfm closed this Jul 30, 2021
@frgfm frgfm deleted the lraspp-docstring branch July 30, 2021 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants