psenet/README.md
preprocessing + inference + postprocessing = 30ms with fp32 on Tesla P40. The original Tensorflow implementation is tensorflow_PSENet. A TensorRT Python api implementation is TensorRT-Python-PSENet.
.wts from Tensorflow.Download pretrained model from https://github.com/liuheng92/tensorflow_PSENet
and put model.ckpt.* to model dir. Add a file model/checkpoint with content
model_checkpoint_path: "model.ckpt"
all_model_checkpoint_paths: "model.ckpt"
Then run
python gen_tf_wts.py
which will gengerate a psenet.wts.
mkdir build
cd build
cmake ..
make
cp ../psenet.wts ./
cp ../test.jpg ./
./psenet -s // serialize model to plan file
./psenet -d // deserialize plan file and run inference
None
ExponentialMovingAverage weight.