Fix AMD by changing from GetTensorData<T>() to GetTensorMutableData<T>()
This commit is contained in:
@@ -51,8 +51,10 @@ namespace ANSCENTER {
|
||||
void warmupModel();
|
||||
bool Init(const std::string& modelPath, bool useGPU=true, int deviceId = 0);
|
||||
cv::Mat preprocess(const cv::Mat& image,float*& blobPtr,std::vector<int64_t>& inputTensorShape);
|
||||
// outputs is non-const because GetTensorMutableData() requires a
|
||||
// non-const Ort::Value receiver — see ANSONNXCL.h for full note.
|
||||
std::vector<Object> postprocess(const cv::Size& origSize,const cv::Size& letterboxSize,
|
||||
const std::vector<Ort::Value>& outputs, const std::string& camera_id);
|
||||
std::vector<Ort::Value>& outputs, const std::string& camera_id);
|
||||
std::vector<Object> segment(const cv::Mat& image, const std::string& camera_id);
|
||||
std::vector<cv::Point2f> maskToPolygon(const cv::Mat& binaryMask,
|
||||
const cv::Rect& boundingBox,
|
||||
|
||||
Reference in New Issue
Block a user