Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* integrate first version of tensorflow-js segmentation model * add flood fill and whole viewport prediction * implement high-perf way of accessing arbitrary cuboid data in front-end * fix some things, wand is working again * fix everything * copy tf models via webpack * upgrade webpack * increase node memory * fix lint, tests * fix model asset path * update tensorflowjs to 1.0 * move viewport when pressing alt and moving mouse * Tensorflow segmentation statistics (#3946) * [WIP] provide sampled mean and stdev for color layer data * convert to unsigned, clean up * best resolution is actually min, not max * pretty-backend * adapt tensorflow segmentation to rectangular viewports * fix lint * added mean and stdDev fetching route and using it for the magic wand tool * applied new formular again * fixed lint and flow * predict for next 5 slices as well * allow tf inference in webworker * made magic wand tool optional * fix shard in webpack-dev-server mode * enabled magic wand tool as default * fix tests * use new segem model, restrict viewport to 100x100 voxel for perf * small perf/cleanup fixes * load model from right path * only use webworker if offscreencanvas is supported * use 3d-floodfill for magic wand * add and adapt floodfill lib, do 3d floodfill, do tile-based predict and floodfill * adapt floodfill to work slice for slice, optimize voxel labeling, remove unneccessary floodfill parts * add flow to floodfill, fix flow * add magic wand unlimited mode, will predict next x slices until aborted via toast * use global tiles instead of viewport local, makes everything easier * update the whole position, so that segments that move out of the viewport later will be correctly predicted * fix magic wand for xz and yz planes * fix mean,stddev memoization, refactor common code * small changes to toast and code * add new tensorflow model, apply PR feedback #1 * apply PR feedback #2 * update redux-saga and typedefs to 1.0, avoid spawning magic wand twice * clean up prediction data for old z slices, rename magic wand to automatic brush * refactor automatic brushing code into own module * disable magic wand by default * react to zoom changes, amend automatic brush label * apply PR feedback #3, use newest model with slightly different normalization, make floodfill_threshold configurable * disable automatic brush by default
- Loading branch information