diff --git a/yolov8/README.md b/yolov8/README.md
index b945d4d..0d32f8b 100644
--- a/yolov8/README.md
+++ b/yolov8/README.md
@@ -8,6 +8,7 @@ The tensorrt code is derived from [xiaocao-tian/yolov8_tensorrt](https://github.
+
## Requirements
@@ -26,7 +27,7 @@ Currently, we support yolov8
- Choose the model n/s/m/l/x from command line arguments.
- Check more configs in [include/config.h](./include/config.h)
-## How to Run, yolov8-tiny as example
+## How to Run, yolov8n as example
1. generate .wts from pytorch with .pt, or download .wts from model zoo
@@ -35,7 +36,7 @@ Currently, we support yolov8
cp {tensorrtx}/yolov8/gen_wts.py {ultralytics}/ultralytics
cd {ultralytics}/ultralytics
python gen_wts.py
-// a file 'yolov8.wts' will be generated.
+// a file 'yolov8n.wts' will be generated.
```
2. build tensorrtx/yolov8 and run
@@ -49,12 +50,13 @@ cp {ultralytics}/ultralytics/yolov8.wts {tensorrtx}/yolov8/build
cmake ..
make
sudo ./yolov8 -s [.wts] [.engine] [n/s/m/l/x] // serialize model to plan file
-sudo ./yolov8 -d [.engine] [image folder] // deserialize and run inference, the images in [image folder] will be processed.
+sudo ./yolov8 -d [.engine] [image folder] [c/g] // deserialize and run inference, the images in [image folder] will be processed.
// For example yolov8
sudo ./yolov8 -s yolov8n.wts yolov8.engine n
-sudo ./yolov8 -d yolov8n.engine ../images
-```
+sudo ./yolov8 -d yolov8n.engine ../images c //cpu postprocess
+sudo ./yolov8 -d yolov8n.engine ../images g //gpu postprocess
+```
3. check the images generated, as follows. _zidane.jpg and _bus.jpg
4. optional, load and run the tensorrt model in python
diff --git a/yolov8/images b/yolov8/images
deleted file mode 100644
index 02cc755..0000000
--- a/yolov8/images
+++ /dev/null
@@ -1 +0,0 @@
-../yolov3-spp/samples
\ No newline at end of file
diff --git a/yolov8/include/model.h b/yolov8/include/model.h
index 2e2ea1f..5e15390 100644
--- a/yolov8/include/model.h
+++ b/yolov8/include/model.h
@@ -3,17 +3,17 @@
#include
#include
-nvinfer1::IHostMemory* buildEngineYolov8n(const int& kBatchSize, nvinfer1::IBuilder* builder,
+nvinfer1::IHostMemory* buildEngineYolov8n(const int& batchsize, nvinfer1::IBuilder* builder,
nvinfer1::IBuilderConfig* config, nvinfer1::DataType dt, const std::string& wts_path);
-nvinfer1::IHostMemory* buildEngineYolov8s(const int& kBatchSize, nvinfer1::IBuilder* builder,
+nvinfer1::IHostMemory* buildEngineYolov8s(const int& batchsize, nvinfer1::IBuilder* builder,
nvinfer1::IBuilderConfig* config, nvinfer1::DataType dt, const std::string& wts_path);
-nvinfer1::IHostMemory* buildEngineYolov8m(const int& kBatchSize, nvinfer1::IBuilder* builder,
+nvinfer1::IHostMemory* buildEngineYolov8m(const int& batchsize, nvinfer1::IBuilder* builder,
nvinfer1::IBuilderConfig* config, nvinfer1::DataType dt, const std::string& wts_path);
-nvinfer1::IHostMemory* buildEngineYolov8l(const int& kBatchSize, nvinfer1::IBuilder* builder,
+nvinfer1::IHostMemory* buildEngineYolov8l(const int& batchsize, nvinfer1::IBuilder* builder,
nvinfer1::IBuilderConfig* config, nvinfer1::DataType dt, const std::string& wts_path);
-nvinfer1::IHostMemory* buildEngineYolov8x(const int& kBatchSize, nvinfer1::IBuilder* builder,
+nvinfer1::IHostMemory* buildEngineYolov8x(const int& batchsize, nvinfer1::IBuilder* builder,
nvinfer1::IBuilderConfig* config, nvinfer1::DataType dt, const std::string& wts_path);
diff --git a/yolov8/include/postprocess.h b/yolov8/include/postprocess.h
index d19f9ff..66522af 100644
--- a/yolov8/include/postprocess.h
+++ b/yolov8/include/postprocess.h
@@ -11,3 +11,4 @@ void batch_nms(std::vector>& batch_res, float *output, in
void draw_bbox(std::vector& img_batch, std::vector>& res_batch);
+void batch_process(std::vector>& res_batch, const float* decode_ptr_host, int batch_size, int bbox_element, const std::vector& img_batch);
diff --git a/yolov8/include/preprocess.h b/yolov8/include/preprocess.h
index 12b170e..e1aea64 100644
--- a/yolov8/include/preprocess.h
+++ b/yolov8/include/preprocess.h
@@ -6,10 +6,20 @@
#include