diff --git a/retinaface/CMakeLists.txt b/retinaface/CMakeLists.txt
index 355fc32..a2cb331 100644
--- a/retinaface/CMakeLists.txt
+++ b/retinaface/CMakeLists.txt
@@ -29,8 +29,8 @@ cuda_add_library(decodeplugin SHARED ${PROJECT_SOURCE_DIR}/decode.cu)
find_package(OpenCV)
include_directories(OpenCV_INCLUDE_DIRS)
-add_executable(retina_50 ${PROJECT_SOURCE_DIR}/plugin_factory.cpp ${PROJECT_SOURCE_DIR}/retina_r50.cpp)
-target_link_libraries(retina_50 nvinfer nvinfer_plugin)
+add_executable(retina_50 ${PROJECT_SOURCE_DIR}/retina_r50.cpp)
+target_link_libraries(retina_50 nvinfer)
target_link_libraries(retina_50 cudart)
target_link_libraries(retina_50 decodeplugin)
target_link_libraries(retina_50 ${OpenCV_LIBRARIES})
diff --git a/retinaface/README.md b/retinaface/README.md
index 8871e33..381c4ce 100644
--- a/retinaface/README.md
+++ b/retinaface/README.md
@@ -1,11 +1,10 @@
# RetinaFace
-## Notice
-
-- Tested on TX2/TensorRT4 and GTX1080/TensorRT7
-- The pytorch implementation is [biubug6/Pytorch_Retinaface](https://github.com/biubug6/Pytorch_Retinaface), I forked it into
+ The pytorch implementation is [biubug6/Pytorch_Retinaface](https://github.com/biubug6/Pytorch_Retinaface), I forked it into
[wang-xinyu/Pytorch_Retinaface](https://github.com/biubug6/Pytorch_Retinaface) and add genwts.py
+This branch is using TensorRT 7 API, branch [trt4->retinaface](https://github.com/wang-xinyu/tensorrtx/tree/trt4/retinaface) is using TensorRT 4.
+
## Run
```
@@ -37,3 +36,13 @@ sudo ./retina_r50 -d // deserialize model file and run inference.
+
+## Config
+
+- Input shape `INPUT_H`, `INPUT_W` defined in `decode.h`
+- FP16/FP32 can be selected by the macro `USE_FP16` in `retina_r50.cpp`
+- GPU id can be selected by the macro `DEVICE` in `retina_r50.cpp`
+
+## More Information
+
+See the readme in [home page.](https://github.com/wang-xinyu/tensorrtx)
diff --git a/retinaface/common.h b/retinaface/common.h
deleted file mode 100644
index 3b9c30c..0000000
--- a/retinaface/common.h
+++ /dev/null
@@ -1,356 +0,0 @@
-#ifndef _TRT_COMMON_H_
-#define _TRT_COMMON_H_
-#include "NvInfer.h"
-#include "NvOnnxConfig.h"
-#include "NvOnnxParser.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include