Skip to content

Paddle.js-v2.1.0

Latest
Compare
Choose a tag to compare
@JingyuanZhang JingyuanZhang released this 21 Sep 13:45
eeebcc1

@paddlejs/paddlejs-core (2.0.1 => 2.1.0)

Features

  • Support multi-model case.
  • Support users to register custom op, users can insert custom op to change the model structure through tranformer plugins.
  • Upgrade OpExecutor to extend the uniform field to support passing values for uniform variables in operators' shader program.
  • Support WeChat Mini Program environment.
  • Upgrade tensor to extend the interpType field to support configurable data interpolation type(LINEAR or NEAREST, default is NEAREST) when use webgl backend.
  • Distinguish whether model pre-processing is performed in the CPU or in the GPU through env flag(webgl_gpu_pipeline or webgl_feed_process)

Upgrade

  • Migrate data preprocessing NCHW2NHWC operations to offline conversion.

@paddlejs/paddlejs-backend-webgl (1.0.1 => 1.1.0)

Features

  • Add 11 new operators.
  • Support custom webgl context.
  • Feature map texture support HALF_FLOAT.
  • Support rendering output texture to an on-screen color buffer.

Upgrade

  • Optimize cacheTexture to reduce redundant texture generation and resource usage.

Converter

Features

  • Support inferring shape.
  • Support transpose weight data layout from NCHW to NHWC.

Upgrade

Optimize model structure and reduce redundant model parameters.

models

  • Support ocr_detect model.
  • Support gesture model (multi_model case).
  • Upgrade humanseg model to support two models info(398x224 and 288x160), support gpu_pipeline, optimize total time to 18.8ms, 60.2% performance improvement.