diff --git a/unet/README.md b/unet/README.md
index 108e619..c2ea2d4 100644
--- a/unet/README.md
+++ b/unet/README.md
@@ -8,12 +8,13 @@ Pytorch model from [Pytorch-UNet](https://github.com/milesial/Pytorch-UNet).
+
+
## Requirements
-Please use TensorRT 7.x.
-
-There is a bug with TensorRT 8.x, we are working on it.
+Now TensorRT 8.x is supported and you can use it.
+The key cause of the previous bug is the pooling layer Stride setting problem.
## Build and Run
diff --git a/unet/unet.cpp b/unet/unet.cpp
index 4018a03..a827afb 100644
--- a/unet/unet.cpp
+++ b/unet/unet.cpp
@@ -41,6 +41,7 @@ ILayer* doubleConv(INetworkDefinition* network, std::map&
ILayer* down(INetworkDefinition* network, std::map& weightMap, ITensor& input, int outch, int p, std::string lname) {
IPoolingLayer* pool1 = network->addPoolingNd(input, PoolingType::kMAX, DimsHW{ 2, 2 });
+ pool1->setStrideNd(DimsHW{ 2, 2 });
assert(pool1);
ILayer* dcov1 = doubleConv(network, weightMap, *pool1->getOutput(0), outch, 3, lname + ".maxpool_conv.1", outch);
assert(dcov1);