revert testing changes
This commit is contained in:
parent
188dbe89ae
commit
61e5429f00
|
@ -88,7 +88,6 @@ export default function MLFileDebugView(props: MLFileDebugViewProps) {
|
|||
const loadFile = async () => {
|
||||
// TODO: go through worker for these apis, to not include ml code in main bundle
|
||||
const imageBitmap = await createImageBitmap(props.file);
|
||||
console.log(imageBitmap);
|
||||
const faceDetections = await blazeFaceDetectionService.detectFaces(
|
||||
imageBitmap
|
||||
);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import React, { useState, useEffect, useContext, ChangeEvent } from 'react';
|
||||
import { getData, LS_KEYS } from 'utils/storage/localStorage';
|
||||
import { useRouter } from 'next/router';
|
||||
|
@ -486,6 +485,44 @@ export default function MLDebug() {
|
|||
<MLFileDebugView file={debugFile} />
|
||||
|
||||
<hr />
|
||||
<Row>Hdbscan MST: </Row>
|
||||
<div
|
||||
id="treeWrapper"
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '50em',
|
||||
backgroundColor: 'white',
|
||||
}}>
|
||||
{mstD3Tree && (
|
||||
<Tree
|
||||
data={mstD3Tree}
|
||||
orientation={'vertical'}
|
||||
nodeSize={nodeSize}
|
||||
zoom={0.25}
|
||||
renderCustomNodeElement={(rd3tProps) =>
|
||||
renderForeignObjectNode({
|
||||
...rd3tProps,
|
||||
foreignObjectProps,
|
||||
})
|
||||
}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<Row>TSNE of embeddings: </Row>
|
||||
<Row>
|
||||
<div
|
||||
id="tsneWrapper"
|
||||
style={{
|
||||
width: '840px',
|
||||
height: '840px',
|
||||
backgroundColor: 'white',
|
||||
overflow: 'auto',
|
||||
}}>
|
||||
{mlResult.tsne && <TSNEPlot mlResult={mlResult} />}
|
||||
</div>
|
||||
</Row>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ import { JobConfig } from 'types/common/job';
|
|||
import { MLSearchConfig, MLSyncConfig } from 'types/machineLearning';
|
||||
|
||||
export const DEFAULT_ML_SYNC_JOB_CONFIG: JobConfig = {
|
||||
intervalSec: 1,
|
||||
intervalSec: 30,
|
||||
// TODO: finalize this after seeing effects on and from machine sleep
|
||||
maxItervalSec: 960,
|
||||
backoffMultiplier: 2,
|
||||
|
|
Loading…
Reference in a new issue