mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 11:26:35 +00:00
Enables use of multiple TPUs in OPI5
This commit is contained in:
@@ -9,6 +9,7 @@ class AiEngineInferencevOnnxRuntime : public AiEngineInference
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AiEngineInferencevOnnxRuntime(QString modelPath, QObject *parent = nullptr);
|
||||
void initialize(int number);
|
||||
|
||||
public slots:
|
||||
void performInferenceSlot(cv::Mat frame) override;
|
||||
@@ -16,5 +17,5 @@ public slots:
|
||||
private:
|
||||
cv::Mat drawLabels(const cv::Mat &image, const std::vector<Yolov8Result> &detections);
|
||||
YOLOPredictor mPredictor;
|
||||
std::vector<std::string> mClassNames;
|
||||
QVector<QString> mClassNames;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user