Skip to content

Add Create_model's Image Size setting #1774

@LReion

Description

@LReion

Is your feature request related to a problem? Please describe.
I hope to use create_model to create a model, such as the vit_tiny_224 model, to be able to use other sizes of image input without error.

Describe the solution you'd like
use like create_model('vit_tiny_224',img_size=args.img_size)
Describe alternatives you've considered
Through such a modification, the image size of the input model can be changed in the model determined using the specified input image size, so that the created vit_tiny_224 can be a model suitable for an image size of 448
Additional context
I think this avoids the confusion of the model input size with the model name, making the input size of the model a separate parameter to create the model, thus making it possible to get the initial model for each image size

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions