5#include "../daoai_dl_sdk/include/export/model.h"
10 namespace DeepLearningCLI
16 static void initialize(
bool use_shared_memory,
int resevered_vram_size);
31 OCR = DaoAI::DeepLearning::ModelType::OCR,
35 Positioning = DaoAI::DeepLearning::ModelType::Positioning
40 CPU = DaoAI::DeepLearning::DeviceType::CPU,
41 GPU = DaoAI::DeepLearning::DeviceType::GPU
265 OCR(String^ model_config_path, String^ model_weight_path,
DeviceType device,
int device_idx);
static int getNumCUDADevices()
Definition model.cpp:12
static void initialize(bool use_shared_memory, int resevered_vram_size)
Definition model.cpp:8
Definition managed_object.h:18
cli::array< int > num_keypoints
Definition model.h:50
cli::array< String^> class_labels
Definition model.h:49
ModelType model_type
Definition model.h:47
DeviceType device
Definition model.h:48
cli::array< String^> keypoint_labels
Definition model.h:51
int getBatchSize()
Get the batch size for the model.
Classification(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
ClassificationResult inference(Image^ image)
: Run inferent on image
void setBatchSize(int batch_size)
Set the batch size for the model.
Classification(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
Definition prediction.h:365
void setConfidenceThreshold(float threshold)
Set the confidence threshold for the model.
InstanceSegmentationResult inference(Image^ image)
: Run inferent on image
float getIOUThreshold()
Get the IOU threshold for the model.
void setBatchSize(int batch_size)
Set the batch size for the model.
void setIOUThreshold(float threshold)
Set the IOU threshold for the model.
InstanceSegmentation(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
float getConfidenceThreshold()
Get the confidence threshold for the model.
int getBatchSize()
Get the batch size for the model.
InstanceSegmentation(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
Definition prediction.h:94
KeypointDetection(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
KeypointDetectionResult inference(Image^ image)
: Run inferent on image
void setIOUThreshold(float threshold)
Set the IOU threshold for the model.
int getBatchSize()
Get the batch size for the model.
KeypointDetection(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
float getIOUThreshold()
Get the IOU threshold for the model.
float getConfidenceThreshold()
Get the confidence threshold for the model.
void setBatchSize(int batch_size)
Set the batch size for the model.
void setConfidenceThreshold(float threshold)
Set the confidence threshold for the model.
Definition prediction.h:177
void setBatchSize(int batch_size)
Set the batch size for the model.
OCRResult inference(Image^ image)
: Run inferent on image
OCR(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
OCR(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
int getBatchSize()
Get the batch size for the model.
Definition prediction.h:275
void setConfidenceThreshold(float threshold)
Set the confidence threshold for the model.
ObjectDetectionResult inference(Image^ image)
: Run inferent on image
void setBatchSize(int batch_size)
Set the batch size for the model.
ObjectDetection(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
int getBatchSize()
Get the batch size for the model.
void setIOUThreshold(float threshold)
Set the IOU threshold for the model.
ObjectDetection(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
float getIOUThreshold()
Get the IOU threshold for the model.
float getConfidenceThreshold()
Get the confidence threshold for the model.
Definition prediction.h:14
Positioning(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
PositioningResult inference(Image^ image)
: Run inferent on image
float getConfidenceThreshold()
Get the confidence threshold for the model.
float getIOUThreshold()
Get the IOU threshold for the model.
void setIOUThreshold(float threshold)
Set the IOU threshold for the model.
Positioning(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
void setConfidenceThreshold(float threshold)
Set the confidence threshold for the model.
void setBatchSize(int batch_size)
Set the batch size for the model.
int getBatchSize()
Get the batch size for the model.
Definition prediction.h:525
PresenceChecking(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
PresenceCheckingResult inference(Image^ image)
: Run inferent on image
int getBatchSize()
Get the batch size for the model.
void setConfidenceThreshold(float threshold)
Set the confidence threshold for the model.
float getIOUThreshold()
Get the IOU threshold for the model.
void setBatchSize(int batch_size)
Set the batch size for the model.
PresenceChecking(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
float getConfidenceThreshold()
Get the confidence threshold for the model.
void setIOUThreshold(float threshold)
Set the IOU threshold for the model.
Definition prediction.h:447
SupervisedDefectSegmentation(String^ model_config_path, String^ model_weight_path, DeviceType device, int device_idx)
: Construct model specified by its configuration and weight file paths onto the designated device
int getBatchSize()
Get the batch size for the model.
SupervisedDefectSegmentation(String^ model_file_path, DeviceType device, int device_idx)
: Load the model specified by its configuration and weight files from the model directory onto the de...
SupervisedDefectSegmentationResult inference(Image^ image)
: Run inferent on image
void setBatchSize(int batch_size)
Set the batch size for the model.
Definition prediction.h:406
DeviceType
Definition model.h:39
ModelType
Definition model.h:26
@ Supervised_Defect_Segmentation