segger.prediction¶
prediction module for Segger.
Contains the implementation of the Segger model using Graph Neural Networks.
Prediction module for Segger.
Contains prediction scripts and utilities for the Segger model.
load_model ¶
load_model(checkpoint_path)
Load a LitSegger model from a checkpoint.
Parameters¶
checkpoint_path : str Specific checkpoint file to load, or directory where the model checkpoints are stored. If directory, the latest checkpoint is loaded.
Returns¶
LitSegger The loaded LitSegger model.
Raises¶
FileNotFoundError If the specified checkpoint file does not exist.
Source code in src/segger/prediction/predict.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|