-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add inchannels
, imsize
, nclasses
as kwargs for all constructors
#176
Comments
inchannels
and nclasses
as kwarg for all constructorsinchannels
and nclasses
as kwargs for all constructors
This might be a little complicated. Some models explicitly allow for an |
Thanks for the lightning feedback, @theabhirath.
👍🏾
In my use-case an |
I think we can support image size, input channels, and output classes as consistent arguments to the highest level constructors (i.e. the ones that have the We can probably have a non-breaking release that adds the interface for this, but not all the models might fully support all the knobs. Once @theabhirath's work lands though, I think we'll be able to support it for every CNN-like architecture. |
Sounds good. Be good if there is a way for me to test if a given constructor will support this extended API, however. Save me having to explicitly document which constructors are allowed for use in MLJFlux and update later. |
inchannels
and nclasses
as kwargs for all constructorsinchannels
, imsize
, nclasses` as kwargs for all constructors
inchannels
, imsize
, nclasses` as kwargs for all constructorsinchannels
, imsize
, nclasses
as kwargs for all constructors
Has there been any recent progress on this issue? |
I see two things outstanding: (1) Other issue is that we have not made a release in a long time (which is keeping these updates from reaching you). (I'll look into this part later today). |
@darsnack Thanks for the update and speed response.
No. |
I see 0.8 has been released. But I take it this is still open? |
|
I'm not sure if this warrants another issue but the docstrings for models without |
Oops, I'll try and work on a docs PR to solve this |
I'm looking at Metalhead integration in MLJFlux. To do this well, I'm looking for some uniformity in the Metalhead.jl API that seems to be lacking. In particular, it would help if
nclasses
andinchannels
were supported kwargs for all Metalhead constructors (VGG
, and so forth). Perhaps if there are models that really can't support them, an informative error could be thrown?For example, I think the following ought to just work but don't:
Also helpful would be a trait to label those constructors that build fixed image size models. I think there's at least one.
The text was updated successfully, but these errors were encountered: