Skip to content

Commit

Permalink
Fix pure JS mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Aug 27, 2021
1 parent 1c8025f commit f131252
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/efficientnet/EfficientnetModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ let tf, Jimp
let PUREJS = false
if (process.env.RECOGNIZE_PUREJS === 'true') {
tf = require('@tensorflow/tfjs')
require('@tensorflow/tfjs-backend-wasm')
PUREJS = true
Jimp = require('jimp')
} else {
Expand All @@ -16,7 +15,6 @@ if (process.env.RECOGNIZE_PUREJS === 'true') {
console.error(e)
console.error('Trying js-only mode')
tf = require('@tensorflow/tfjs')
require('@tensorflow/tfjs-backend-wasm')
PUREJS = true
Jimp = require('jimp')
}
Expand Down

0 comments on commit f131252

Please sign in to comment.