Skip to content

Add inchannels, imsize, nclasses as kwargs for all constructors #176

Open
@ablaom

Description

@ablaom

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 and inchannels 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:

VGG(inchannels=1)
ResNet(inchannels=1)

Also helpful would be a trait to label those constructors that build fixed image size models. I think there's at least one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions