You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using your toolbox with the built-in models is straightforward, but we would like to compare some custom pytorch models.
It would be great to have a routine to add these models (i.e. subclasses of nn.Module) to the toolbox registry from your own script. If this is already possible, it would be great if you could share an example.
Currently, we add the model inside the toolbox's files which makes extensions complicated and redundant (e.g. name of
model in the path, the function name, the plotting routine).
Thanks
David
The text was updated successfully, but these errors were encountered:
If you're looking to add many models to the toolbox, the following approach might work (the example is based on a resnet18 at different epochs, but could easily be adapted to other settings):
This snippet can be inserted in modelvshuman/models/pytorch/model_zoo.py and would be a concise version of registering 90 different models. Is this in line with what you had in mind?
Thanks, this is a work-around that can simplify what we are doing.
My initial request was more towards a function that is available when importing the toolbox.
If you modify the example with a custom model, I would expect the following user experience:
Using your toolbox with the built-in models is straightforward, but we would like to compare some custom pytorch models.
It would be great to have a routine to add these models (i.e. subclasses of
nn.Module
) to the toolbox registry from your own script. If this is already possible, it would be great if you could share an example.Currently, we add the model inside the toolbox's files which makes extensions complicated and redundant (e.g. name of
model in the path, the function name, the plotting routine).
Thanks
David
The text was updated successfully, but these errors were encountered: