tractjs | Run ONNX and TensorFlow inference in the browser

 by   bminixhofer Rust Version: v0.4.0 License: Non-SPDX

kandi X-RAY | tractjs Summary

kandi X-RAY | tractjs Summary

tractjs is a Rust library typically used in Binary Executable Format applications. tractjs has no bugs, it has no vulnerabilities and it has low support. However tractjs has a Non-SPDX License. You can download it from GitHub.

At the time of writing, tractjs is very large for web standards (6.2MB raw, 2.1MB gzipped). This is due to tract being quite large, and due to some overhead from inlining the WASM. But it's not as bad as it sounds. You can load tractjs lazily along your demo, where you will likely have to load significantly large weights too. If you are working on a very size-sensitive application, get in touch and we can work on decreasing the size. There are some more optimizations to be done (e. g. an option not to inline WASM, and removing panics from the build). There is also ongoing work in tract to decrease size.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tractjs has a low active ecosystem.
              It has 67 star(s) with 7 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 11 have been closed. On average issues are closed in 3 days. There are 18 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of tractjs is v0.4.0

            kandi-Quality Quality

              tractjs has 0 bugs and 0 code smells.

            kandi-Security Security

              tractjs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              tractjs code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              tractjs has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              tractjs releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tractjs
            Get all kandi verified functions for this library.

            tractjs Key Features

            No Key Features are available at this moment for tractjs.

            tractjs Examples and Code Snippets

            tractjs,FAQ,Why does my model with dynamic input dimensions not work?
            Rustdot img1Lines of Code : 15dot img1License : Non-SPDX (NOASSERTION)
            copy iconCopy
            const model = await tractjs.load("path/to/your/model", {
              inputFacts: {
                0: ["float32", [1, "s", 224, 224]],
              },
            });
            
            const model = await tractjs.load("path/to/your/model", {
              inputFacts: {
                // be careful with image model input facts! here I  
            tractjs,Getting started,Without a bundler
            Rustdot img2Lines of Code : 15dot img2License : Non-SPDX (NOASSERTION)
            copy iconCopy
              
            tractjs,Getting started,With a bundler
            Rustdot img3Lines of Code : 10dot img3License : Non-SPDX (NOASSERTION)
            copy iconCopy
            npm install tractjs
            
            import * as tractjs from "tractjs";
            
            tractjs.load("path/to/your/model").then((model) => {
              model
                .predict([new tractjs.Tensor(new Float32Array([1, 2, 3, 4]), [2, 2])])
                .then((preds) => {
                  console.log(preds);
               

            Community Discussions

            No Community Discussions are available at this moment for tractjs.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install tractjs

            You can download it from GitHub.
            Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.

            Support

            tractjs are bindings to the tract Rust library which was originally not intended to be run on the web. WebGL / WebNN support would be great, but would require lots of web-specific changes in tract so it is currently not under consideration.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries