Model Asset Import Settings
The Model Asset Import Settings window lets you do the following:
- Change settings that affect how Sentis imports a model.
- Check the properties of an imported and optimized model.
To access this window, select an imported model asset in the Project window.
|Open the model in the default application for ONNX files. Refer to Open a model as a graph for more information.
|When enabled, Sentis optimizes the model when you import it. The default is enabled.
|Save changes you've made to the settings.
|Revert changes you've made to the settings.
Imported Object settings
This section only appears if the model file contains ONNX metadata.
This section shows the total number of inputs the model has, and a list of the inputs.
|The name of the input.
|The tensor shape of the input. For example (1, 1, 28, 28) means the model accepts a tensor of size 1 × 1 × 28 × 28 exactly. If a dimension in the shape is a string instead of a number, for example
height, the dimension can be any size (a dynamic input). Refer to Model inputs for more information about dynamic inputs.
|The data type of the input. The possible values are float and int.
This section shows the total number of outputs the model has, and a list of the outputs.
|The name of the output.
|The tensor shape of the output. Sentis tries to precalculate this shape from the model. If a dimension in the shape is a question mark (?), Sentis can't calculate the size of the dimension, or the size depends on the input (a dynamic output). If the entire tensor shape is Unknown, Sentis can't calculate the number of dimensions, or the number of dimensions is dynamic.
|The data type of the output. The possible values are
This section shows the total number of layers the model has, and a list of the layers in the order Sentis runs them.
|The type of layer. Refer to Supported ONNX operators for more information.
|The name of the layer.
|The names of the inputs to the layer. Possible values are a model input from the Inputs section, another layer, or a constant.
|The properties of the layer. The properties will depend on the type of layer. Refer to Supported ONNX operators for more information.
This section shows the total number of constants the model has and the total number of weights, and a list of the constants.
|The type is always Constant.
|The name of the constant.
|The tensor shape of the constant. If the tensor shape is empty - () - the constant is a scalar (a zero-dimensional tensor).
This section shows the total size of the model, its source, the ONNX opset version, and the tool that was used to create the model file.
This section only appears if there was a problem when Sentis imported and optimized the model, and the problems mean you can't run the model.
This section only appears if there was a problem when Sentis imported and optimized the model. You can usually still run the model, but you might get unexpected results.
You can add a custom layer to implement a missing operator. Refer to the
Add a custom layer example in the sample scripts for an example.