@paddlejs-mediapipe/data-processor-simplify
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.paddlejsDataProcessor=r():e.paddlejsDataProcessor=r()}(this,(function(){return(()=>{"use strict";var e={211:(e,r,t)=>{function o(e,r){var t=r.mean,o=void 0===t?[0,0,0]:t,a=r.std,i=void 0===a?[1,1,1]:a,f=r.normalizeType,d=void 0===f?0:f,p=r.targetShape,s=r.colorType,c=void 0===s?0:s,u=r.isNchw,v=p[1],l=p[2],y=p[3],b=e.data||e,m=new Float32Array(new Array(v*l*y)),g=0;if(u){for(var j=l,h=y,x=4*h,S=0;S<4;++S)for(var P=0;P<j;++P)for(var w=0;w<h;++w){var O=P*x+4*w+(M=0===c?w:2-w);m[g]=n(d,b[O]),m[g]-=o[M],m[g]/=i[M],g++}return m}for(var T=0;T<l;++T)for(var D=T*y,k=0;k<y;++k)for(var A=D+k,F=0;F<v;++F){var M;O=4*A+(M=0===c?F:2-F),m[g]=n(d,b[O]),m[g]-=o[M],m[g]/=i[M],g++}return m}function a(e,r){return[{data:o(e,r),shape:r.targetShape,name:"image"}]}function n(e,r){var t=0;switch(e){case 0:t=r/255;break;case 1:t=(r-128)/128;break;case 2:t=r}return t}t.r(r),t.d(r,{genFeedData:()=>a,reshape:()=>o})}},r={};function t(o){if(r[o])return r[o].exports;var a=r[o]={exports:{}};return e[o](a,a.exports,t),a.exports}return t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(211)})()})); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.paddlejsDataProcessor=r():e.paddlejsDataProcessor=r()}(this,(function(){return(()=>{"use strict";var e={211:(e,r,t)=>{function o(e,r){for(var t=r.mean,o=void 0===t?[0,0,0]:t,a=r.std,i=void 0===a?[1,1,1]:a,d=r.normalizeType,p=void 0===d?0:d,s=r.targetShape,c=r.colorType,f=void 0===c?0:c,u=r.isNchw,l=s[1],y=s[2],v=s[3],b=e.data||e,m=new Float32Array(new Array(l*y*v)),g=0,j=0;j<y;++j)for(var h=j*v,x=0;x<v;++x)for(var S=h+x,P=0;P<l;++P){var w=0===f?P:2-P,O=4*S+w,T=u?P*y*v+j*v+x:g++;m[T]=n(p,b[O]),m[T]-=o[w],m[T]/=i[w]}return m}function a(e,r){return[{data:o(e,r),shape:r.targetShape,name:"image"}]}function n(e,r){var t=0;switch(e){case 0:t=r/255;break;case 1:t=(r-128)/128;break;case 2:t=r}return t}t.r(r),t.d(r,{genFeedData:()=>a,reshape:()=>o})}},r={};function t(o){if(r[o])return r[o].exports;var a=r[o]={exports:{}};return e[o](a,a.exports,t),a.exports}return t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(211)})()})); |
{ | ||
"name": "@paddlejs-mediapipe/data-processor-simplify", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "data processor of Paddle.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/simplify", |
@@ -22,3 +22,4 @@ [English](./README.md) | ||
colorType: 0, // 0: rgb; 1: bgr; default 0 | ||
normalizeType: 0 // data normalize type: 0: 0~1; 1:-1~1; default 0 | ||
normalizeType: 0, // data normalize type: 0: 0~1; 1:-1~1; default 0 | ||
isNchw: true // the format of output, default f | ||
}; | ||
@@ -25,0 +26,0 @@ |
@@ -22,3 +22,4 @@ [English](./README_cn.md) | ||
colorType: 0, // 0: rgb; 1: bgr; default 0 | ||
normalizeType: 0 // data normalize type: 0: 0~1; 1:-1~1; default 0 | ||
normalizeType: 0, // data normalize type: 0: 0~1; 1:-1~1; default 0 | ||
isNchw: true // the format of output, default false | ||
}; | ||
@@ -25,0 +26,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36
219328