java.lang.Object
qupath.bioimageio.spec.Weights.ModelWeights
- Enclosing class:
- Weights
Model weights information for a specific format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttachments that are specific to this weights entryEither the person(s) that have trained this model resulting in the original weights file.The source weights these weights were converted from.Get the SHA of the source file.Get the source file or link (http etc.)toString()
-
Constructor Details
-
ModelWeights
public ModelWeights()
-
-
Method Details
-
getSource
Get the source file or link (http etc.)- Returns:
- The source, if present
-
getAttachments
Attachments that are specific to this weights entry- Returns:
- The attachments. Unclear what these may be.
-
getParent
The source weights these weights were converted from. For example, if a model's weights were converted from the `pytorch_state_dict` format to `torchscript`, The `pytorch_state_dict` weights entry has no `parent` and is the parent of the `torchscript` weights. All weight entries except one (the initial set of weights resulting from training the model), need to have this field.- Returns:
- The parent
-
getSha256
Get the SHA of the source file.- Returns:
- The SHA256 hash of the file.
-
getAuthors
Either the person(s) that have trained this model resulting in the original weights file. (If this is the initial weights entry, i.e. it does not have a `parent`) Or the person(s) who have converted the weights to this weights format. (If this is a child weight, i.e. it has a `parent` field)- Returns:
- The authors.
-
toString
-