Self-Correction-Human-Parsing icon indicating copy to clipboard operation
Self-Correction-Human-Parsing copied to clipboard

trained on custom dataset

Open conan2333 opened this issue 5 years ago • 6 comments

Forgive my english skill :)

This is a good work. I tried to train on a custom data set for human parsing. It work good on my dataset. The performance rise about 4%.

But current model is too big for development. @PeikeLi Do you have any idea to speed up the model?

conan2333 avatar Jul 09 '20 07:07 conan2333

@conan2333 There are several things you can have a try to boost the inference speed.

  1. replace a lightweight model as the backbone, e.g. MobileNetV3
  2. network pruning
  3. deploy on TensorRT or TVM

However, have to notice, all these approaches may slightly decrease the model performance.

GoGoDuck912 avatar Jul 09 '20 07:07 GoGoDuck912

Thank you for your fast reply.

I will have a look for your advices.

conan2333 avatar Jul 09 '20 07:07 conan2333

I search the TensorRT. But it need a onnx model. Can you please provide the onnx model?

conan2333 avatar Jul 09 '20 07:07 conan2333

Please refer to #6 when you want to export the model to onnx. And also welcome to pull request if you have finished it.

GoGoDuck912 avatar Jul 09 '20 07:07 GoGoDuck912

Please refer to #6 when you want to export the model to onnx. And also welcome to pull request if you have finished it.

@conan2333 There are several things you can have a try to boost the inference speed.

  1. replace a lightweight model as the backbone, e.g. MobileNetV3
  2. network pruning
  3. deploy on TensorRT or TVM

However, have to notice, all these approaches may slightly decrease the model performance.

Please refer to #6 when you want to export the model to onnx. And also welcome to pull request if you have finished it.

Hi, I find you have offered the lightweight model of mobilenetv2, but only do a classification job. refer to some comment "invert residual network layer2,layer3,layer4,layer5" in backbone/mobilenet. So i think i should modify this script according AugumentCE2P.py . Am I right? Can you offer the mIoU score of MobileNetV2 ? Thank you very much!

yunshangyue71 avatar Jul 13 '20 03:07 yunshangyue71