#0: Caffe, 1: TensorFlow, 2: ONNX, Default - 0 modelType = 2 # Net definition from Training frames work. Example "deploy.prototxt" from caffe or frozen binary protobuf with parameters from tensorflow inputNetFile = "E:\TIDL_workshop\TIDL_import_tool_v14_updated\tidl_j7_01_00_00_00\ti_dl\utils\tidlModelImport\out\model.onnx" # Output TIDL model with Net and Parameters outputNetFile = "E:\TIDL_workshop\TIDL_import_tool_v14_updated\tidl_j7_01_00_00_00\ti_dl\utils\tidlModelImport\out\net.bin" # Input and output buffer descriptor file for TIDL ivsion interface outputParamsFile = "E:\TIDL_workshop\TIDL_import_tool_v14_updated\tidl_j7_01_00_00_00\ti_dl\utils\tidlModelImport\out\param" # TIDL PC Reference executable file path for range collection. If not specified, uses from default location tidlStatsTool = "E:\TIDL_workshop\TIDL_import_tool_v14_updated\tidl_j7_01_00_00_00\ti_dl\test\tidl_quant_stats_tool.out.exe" # Bit depth for model parameters like Kernel, Bias etc; , Default - 8 numParamBits = 8 # Bit depth for Layer activatios; , Default - 8 , Max suported is 16. Any value > 8 is experimentel in the 00.08 release.. numFeatureBits = 8 # 0: Quantization method. Default : Non-power of two scale. 2- Power of 2 scales. can experiment with '3' (power of 2) for stable models quantizationStyle = 2 # Scale factor of input feature, if the input range used in training is 0 to 1 and the same is passed as tansor range of 0 - 255 to TIDL then this parameters shall be 255 inQuantFactor = 128 # Format for input feature, 0 : 8bit Unsigned, 1 : 8bit Signed Default - 1 inElementType = 1 # Input tensors width inWidth = 512 # Input tensors Height inHeight = 336 # Input tensors Number of channels inNumChannels = 3 # Fold Batch Normalization Layer into TIDL Lib Conv Layer #foldBnInConv2D = 1 # Combine 2x2 with stride 2 Max Pool layer processing with previous convolution layer if possible #foldMaxPoolInConv2D = 1 #Input File Format - 0 : Compressed Image (JPEG/PNG), 1: RAW Image, 2: Compressed Image List inFileFormat = 0 # List of input tensor names in network to be imported. Will be usefull to import portion of network #inDataNamesList = "input" # List of output tensor names in network to be imported. Will be usefull to import portion of network #outDataNamesList = "output" # Enable / Disable Normalization on input tensor. Scale and mean values are applicable only if this is enabled inDataNorm = 1 #Mean value needs to be subtracted for each channel of all input tensors inMean = 94.61594, 94.85598, 93.67584 # List : Scale value needs to be multiplied after means subtract for each channel of all input tensors inScale = 0.0001394 0.0001347 0.0001308 # List : Input tensor color format. RBG or BGR planar etc. Refer TIDL API guide for supported formats list inDataFormat = 0 # Image resize type . Refer TIDL API guide for supported formats list inResizeType = 0 # Image cropping is performed if resizeWidth > imWidth resizeWidth = 512 # Image cropping is performed if resizeHeight > inHeight resizeHeight = 336 Post processing on output tensor. 0 : Disable, 1- Classification top 1 and 5 accuracy, 2 – Draw bounding box for OD, 3 - Pixel level color blending postProcType = 0 #Input tensors File for Reading inData = "E:\TIDL_workshop\TIDL_import_tool_v14_updated\tidl_j7_01_00_00_00\ti_dl\utils\tidlModelImport\out\bgr_2.jpg" # Number of input tensors to be processed from the input file numFrames = 1