Skip to content

Commit bde871f

Browse files
Merge pull request #142 from JingyuanZhang/master
feat(core): del useless filecount param instead get chunknum from model
2 parents 91b8050 + b6fd6c8 commit bde871f

File tree

16 files changed

+23
-44
lines changed

16 files changed

+23
-44
lines changed

e2e/dist/models/custom_model/model.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"chunkNum": 0,
23
"ops": [
34
{
45
"attrs": {

packages/paddlejs-backend-cpu/test/model/modelTest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import '../../src/index';
44
async function run() {
55
const runner = new Runner({
66
modelPath: 'https://paddlejs.cdn.bcebos.com/models/mobileNetV2/model.json',
7-
fileCount: 4,
87
feedShape: {
98
fw: 224,
109
fh: 224

packages/paddlejs-backend-nodegl/test/model/modelTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ async function run() {
1212
feedShape: {
1313
fw: 5,
1414
fh: 3
15-
},
16-
fileCount: 0
15+
}
1716
});
1817
const preheatRes = await runner.init();
1918
console.log(preheatRes); // [ 30, 25, 40, 30, 25, 40 ]

packages/paddlejs-backend-nodegl/test/op/opTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const modelPath = `${modelDir}/${opName}.json`;
1010
async function run() {
1111
const runner = new Runner({
1212
modelPath,
13-
fileCount: 0,
1413
feedShape: {
1514
fw: 3,
1615
fh: 3

packages/paddlejs-backend-webgl/test/model/modelTest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ async function run() {
1010
feedShape: {
1111
fw: 5,
1212
fh: 3
13-
},
14-
fileCount: 0
13+
}
1514
});
1615

1716
env.set('debug', true);

packages/paddlejs-backend-webgl/test/op/opTest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const modelPath = `${modelDir}${opName}.json`;
99
async function run() {
1010
const runner = new Runner({
1111
modelPath,
12-
fileCount: 0,
1312
feedShape: {
1413
fw: 3,
1514
fh: 3

packages/paddlejs-backend-webgpu/test/model/modelTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ async function run() {
1010
feedShape: {
1111
fw: 5,
1212
fh: 3
13-
},
14-
fileCount: 0
13+
}
1514
});
1615
const preheatRes = await runner.init();
1716
console.log(preheatRes);

packages/paddlejs-backend-webgpu/test/op/opTest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async function run() {
4747
fw: 3,
4848
fh: 3
4949
},
50-
fileCount: 0,
5150
needPreheat: false
5251
});
5352
await runner.init();

packages/paddlejs-benchmark/src/config.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export default Vue.extend({
5858
modelList: [
5959
{
6060
name: 'mobileNetV2',
61-
fileCount: 4,
6261
feedShape: {
6362
fw: 224,
6463
fh: 224
@@ -70,7 +69,6 @@ export default Vue.extend({
7069
},
7170
{
7271
name: 'mobileNetV2Opt',
73-
fileCount: 4,
7472
feedShape: {
7573
fw: 224,
7674
fh: 224
@@ -82,7 +80,6 @@ export default Vue.extend({
8280
},
8381
{
8482
name: 'wine',
85-
fileCount: 3,
8683
feedShape: {
8784
fw: 224,
8885
fh: 224
@@ -94,7 +91,6 @@ export default Vue.extend({
9491
},
9592
{
9693
name: 'gesture_detect',
97-
fileCount: 2,
9894
feedShape: {
9995
fw: 256,
10096
fh: 256
@@ -106,7 +102,6 @@ export default Vue.extend({
106102
},
107103
{
108104
name: 'gesture_rec',
109-
fileCount: 1,
110105
feedShape: {
111106
fw: 224,
112107
fh: 224
@@ -118,7 +113,6 @@ export default Vue.extend({
118113
},
119114
{
120115
name: 'humanseg',
121-
fileCount: 1,
122116
feedShape: {
123117
fw: 192,
124118
fh: 192

packages/paddlejs-core/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import '@paddlejs/paddlejs-backend-webgl';
1616

1717
const runner = new Runner({
1818
modelPath: '/model/mobilenetv2', // model path, e.g. http://xx.cc/path, http://xx.cc/path/model.json, /localModelDir/model.json, /localModelDir
19-
fileCount?: 4, // model data file count, default value is 1
2019
feedShape: { // input shape
2120
fw: 256,
2221
fh: 256

0 commit comments

Comments
 (0)