Skip to content

Commit

Permalink
remove the test-data
Browse files Browse the repository at this point in the history
  • Loading branch information
fujunwei committed Apr 3, 2024
1 parent acc1a1d commit 1b3e63b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,15 +487,15 @@ export function permuteData(array, dims, axes) {

export function getDefaultLayout(deviceType) {
const userAgent = navigator.userAgent;
if (userAgent.indexOf("Linux") != -1 || userAgent.indexOf("Android") != -1 ||
userAgent.indexOf("CrOS") != -1) {
if (userAgent.indexOf('Linux') != -1 || userAgent.indexOf('Android') != -1 ||
userAgent.indexOf('CrOS') != -1) {
return 'nhwc';
} else {
// Windows or Mac platform.
if (deviceType.indexOf('cpu') != -1) {
return 'nhwc';
} else if (deviceType.indexOf('gpu') != -1) {
return 'nchw'
return 'nchw';
}
}
}
1 change: 1 addition & 0 deletions face_recognition/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ $(document).ready(async () => {
});

$('#backendBtns .btn').on('change', async (e) => {
if (inputType === 'camera') utils.stopCameraStream(rafReq, stream);
layout = utils.getDefaultLayout($(e.target).attr('id'));
await main();
});
Expand Down

0 comments on commit 1b3e63b

Please sign in to comment.