From 8100400a981a5823c31e8967370b7b20bdfd66e0 Mon Sep 17 00:00:00 2001 From: Bill ZHANG <36790218+Lutra-Fs@users.noreply.github.com> Date: Tue, 16 Jan 2024 15:30:43 +1100 Subject: [PATCH] fix(tfjsService): fix a error which increment the counter twice --- src/services/model/TfjsService.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/services/model/TfjsService.ts b/src/services/model/TfjsService.ts index d65d731..82f1a26 100644 --- a/src/services/model/TfjsService.ts +++ b/src/services/model/TfjsService.ts @@ -153,7 +153,6 @@ export class TfjsService implements ModelService { if (this.isPaused) { return; } - this.curFrameCountbyLastSecond += 1; const input = this.getInput(); const energy = this.velocity.square().sum(); // const output = this.model?.predict(input);