File tree Expand file tree Collapse file tree 3 files changed +13
-20
lines changed
packages/paddlejs-models/humanseg Expand file tree Collapse file tree 3 files changed +13
-20
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @paddlejs-models/humanseg" ,
3- "version" : " 1.2.2 " ,
3+ "version" : " 1.2.3 " ,
44 "description" : " " ,
55 "main" : " lib/index" ,
66 "scripts" : {
1010 "author" : " " ,
1111 "license" : " ISC" ,
1212 "dependencies" : {
13- "@paddlejs/paddlejs-backend-webgl" : " ^1.1.19 " ,
14- "@paddlejs/paddlejs-core" : " ^2.1.17 "
13+ "@paddlejs/paddlejs-backend-webgl" : " ^1.2.9 " ,
14+ "@paddlejs/paddlejs-core" : " ^2.1.28 "
1515 },
1616 "devDependencies" : {
1717 "html-webpack-plugin" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ interface LoadOptions {
1616
1717let runner = null as Runner ;
1818
19- let WIDTH = 398 ;
20- let HEIGHT = 224 ;
19+ const WIDTH = 398 ;
20+ const HEIGHT = 224 ;
2121
2222function registerCustomOp ( ) {
2323 registerOp ( segImg , 'segImg' ) ;
@@ -57,14 +57,7 @@ export async function load(options: LoadOptions = {
5757 canvasWidth : 500 ,
5858 canvasHeight : 280
5959} ) {
60- const modelpath = 'https://paddlejs.bj.bcebos.com/models/fuse/humanseg/humanseg_398x224_fuse_activation/model.json' ;
61- const lightModelPath = 'https://paddlejs.bj.bcebos.com/models/fuse/humanseg/humanseg_288x160_fuse_activation/model.json' ;
62- const modelPath = options . enableLightModel ? lightModelPath : modelpath ;
63-
64- if ( options . enableLightModel ) {
65- WIDTH = 288 ;
66- HEIGHT = 160 ;
67- }
60+ const modelPath = 'https://paddlejs.cdn.bcebos.com/models/humansegv2/model.json' ;
6861
6962 runner = new Runner ( {
7063 modelPath : modelPath ,
You can’t perform that action at this time.
0 commit comments