-
Notifications
You must be signed in to change notification settings - Fork 141
Enable model registration and scoring for classification models #398
Comments
One of the conceptual difficulties for classification models is their (potentially) very complex input. We have designed the classification models such that you can feed in a combination of image and non-image features - to use that at inference time in all its generality, you need to feed in a folder with a mini mock dataset for the test data. We have not yet had a use case for that, hence it is not in the toolbox. If you'd like to help extend the toolbox here, we'd be very grateful! The necessary steps are:
The first 2 steps should be relatively simple. Once you have that, you can download a trained model from AzureML, read out the checkpoint, and do pretty much anything with it, without having to rely on fancy |
This PR changes the codepath so all models trained on AzureML are registered. The codepath previously allowed only segmentation models (subclasses of `SegmentationModelBase`) to be registered. Models are registered after a training run or if the `only_register_model` flag is set. Models may be legacy InnerEye config-based models or may be defined using the LightningContainer class. The PR also removes the AzureRunner conda environment. The full InnerEye conda environment is needed to submit a training job to AzureML. It splits the `TrainHelloWorldAndHelloContainer` job in the PR build into two jobs, `TrainHelloWorld` and `TrainHelloContainer`. It adds a pytest marker `after_training_hello_container` for tests that can be run after training is finished in the `TrainHelloContainer` job. This will solve the issue of model registration in #377 and #398.
Classification models are registered now, see #455. We do not yet have a clear story for running those with score.py. |
After the run is successfully completed, I see a
.tar
archive named50_checkpoint.pth.tar
inoutputs/checkpoints
under the "Outputs & Logs" tab, but I do not see the model under the "Models" tab.As mentioned in the docs no clear pipeline is defined for classification models.
How can I run a trained model on AML without a
score.py
file?AB#3920
The text was updated successfully, but these errors were encountered: