@wolanx/react-netron

1.0.5 • Public • Published

react-netron

netron via react

Intro

View Neural Network model with graphs.

Install

# https://www.npmjs.com/package/@wolanx/react-netron
npm i @wolanx/react-netron

Prepare file

Demo - open with button

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>
    )
}

Demo - open with link

export default function Demo2 () {
    const file = useOnnx('./model/demo.onnx')
    return <ReactOnnx width={'100%'} height={600} file={file}/>
}

Readme

Keywords

Package Sidebar

Install

npm i @wolanx/react-netron

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

3.52 MB

Total Files

3

Last publish

Collaborators

  • wolanx