netron via react
View Neural Network model with graphs.
# https://www.npmjs.com/package/@wolanx/react-netron
npm i @wolanx/react-netron
export default function Demo1 () {
const ref = useRef(null)
return (
<div>
<button onClick={() => ref.current?.open()}>Open Model...</button>
<ReactOnnx ref={ref} width={'100%'} height={600} file={null}/>
</div>
)
}
export default function Demo2 () {
const file = useOnnx('./model/demo.onnx')
return <ReactOnnx width={'100%'} height={600} file={file}/>
}