Skip to content

catch Error if model_type is redefeined in model config #441

Open
@redspottedbittern

Description

@redspottedbittern

If either the key model_type or taskmodule_type (see here) are used as a parameter in the constructor of a model or taskmodule, respectively, it is not possible to instantiate the respective objects via .from_pretrained and this error message is displayed (dummy is the value of the redefined model_type):

Error in call to target 'pytorch_ie.auto.AutoPipeline.from_pretrained':
RegistrationError('dummy is not a registered name for PyTorchIEModel.')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions