Package qupath.opencv.dnn
Class DnnModelParams.Builder
java.lang.Object
qupath.opencv.dnn.DnnModelParams.Builder
- Enclosing class:
DnnModelParams
Builder for
DnnModelParams
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the params.Specify the URIs as files.Specify the deep learning framework that can use the model.Specify the shape as a long array for a single input with a specified name.Specify the shape for a single input with a specified name.Specify the shapes for one or more inputs.inputShape
(long... shape) Specify the shape for a single input, with the default input name.Specify a string representing the axes layout that the model expects as input.lazyInitialize
(boolean lazyInitialize) Optionally request lazy initialization.Specify the shape as a long array for a single named output.Specify the shape for a single named output.Specify the shapes for one or more outputs.outputShape
(long... shape) Specify the shape for a single output, with the default output name.Specify the URIs as path objects.Specify the URIs.URIs
(Collection<URI> uris) Specify the URIs as a collection.
-
Method Details
-
files
Specify the URIs as files. These will be appended to any existing URIs.- Parameters:
files
-- Returns:
-
paths
Specify the URIs as path objects. These will be appended to any existing URIs.- Parameters:
paths
-- Returns:
-
URIs
Specify the URIs. These will be appended to any existing URIs.- Parameters:
uris
-- Returns:
-
URIs
Specify the URIs as a collection. These will be appended to any existing URIs.- Parameters:
uris
-- Returns:
-
lazyInitialize
Optionally request lazy initialization.- Parameters:
lazyInitialize
-- Returns:
-
framework
Specify the deep learning framework that can use the model.It is recommended to use one of the default names available as static variables in
DnnModelParams
. However, an extension might use some other unique identifier to ensure that it is used in preference to some other implementation.- Parameters:
framework
-- Returns:
-
layout
Specify a string representing the axes layout that the model expects as input. This should follow the Bioimage Model Zoo spec, and include only the characters "bixyczt".- Parameters:
layout
-- Returns:
-
inputShape
Specify the shape for a single input, with the default input name.- Parameters:
shape
-- Returns:
-
input
Specify the shape as a long array for a single input with a specified name.- Parameters:
name
-shape
-- Returns:
-
input
Specify the shape for a single input with a specified name.- Parameters:
name
-shape
-- Returns:
-
inputs
Specify the shapes for one or more inputs.- Parameters:
inputs
-- Returns:
-
outputShape
Specify the shape for a single output, with the default output name.- Parameters:
shape
-- Returns:
-
output
Specify the shape as a long array for a single named output.- Parameters:
name
-shape
-- Returns:
-
output
Specify the shape for a single named output.- Parameters:
name
-shape
-- Returns:
-
outputs
Specify the shapes for one or more outputs. These will be added to any existing outputs.- Parameters:
outputs
-- Returns:
-
build
Build the params.- Returns:
-