Skip to content

Commit 146d88c

Browse files
authored
Update main.cpp
1 parent b6b2912 commit 146d88c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

TensorRT/main.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
int main()
1010
{
1111
static ClassificationTensorRT CLASSIFICATION_TENSORRT;
12-
cv::Mat img = cv::imread("C:/DeepEye/Data/Result/boundingbox_resources/20190409/0009201904090172_F.jpg");
13-
std::string model = "C:/DeepEye/Data/DNN/DamageClassificationModel/deploy.prototxt";
14-
std::string trained = "C:/DeepEye/Data/DNN/DamageClassificationModel/network.caffemodel";
15-
std::string mean = "C:/DeepEye/Data/DNN/DamageClassificationModel/mean.binaryproto";
16-
std::string label = "C:/DeepEye/Data/DNN/DamageClassificationModel/labels.txt";
12+
// Edit image and caffe model path below
13+
cv::Mat img = cv::imread("image.jpg");
14+
std::string model = "CaffeModel/deploy.prototxt";
15+
std::string trained = "CaffeModel/network.caffemodel";
16+
std::string mean = "CaffeModel/mean.binaryproto";
17+
std::string label = "CaffeModel/labels.txt";
1718
ClassificationTensorRT::classifier_ctx *ctx;
1819
int time1, time2;
1920

@@ -29,4 +30,4 @@ int main()
2930

3031
system("PAUSE");
3132
return 0;
32-
}
33+
}

0 commit comments

Comments
 (0)