nncf | Neural Network Compression Framework for enhanced OpenVINO™ inference | Machine Learning library

 by   openvinotoolkit Python Version: 2.11.0 License: Apache-2.0

kandi X-RAY | nncf Summary

kandi X-RAY | nncf Summary

nncf is a Python library typically used in Artificial Intelligence, Machine Learning, Deep Learning, Pytorch, Tensorflow, Neural Network, Transformer applications. nncf has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install nncf' or download it from GitHub, PyPI.

NNCF provides a suite of advanced algorithms for Neural Networks inference optimization in OpenVINO with minimal accuracy drop. NNCF is designed to work with models from PyTorch and TensorFlow. NNCF provides samples that demonstrate the usage of compression algorithms for three different use cases on public PyTorch and TensorFlow models and datasets: Image Classification, Object Detection and Semantic Segmentation. Compression results achievable with the NNCF-powered samples can be found in a table at the end of this document. The framework is organized as a Python* package that can be built and used in a standalone mode. The framework architecture is unified to make it easy to add different compression algorithms for both PyTorch and TensorFlow deep learning frameworks.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              nncf has a low active ecosystem.
              It has 611 star(s) with 171 fork(s). There are 25 watchers for this library.
              There were 1 major release(s) in the last 6 months.
              There are 21 open issues and 224 have been closed. On average issues are closed in 206 days. There are 44 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of nncf is 2.11.0

            kandi-Quality Quality

              nncf has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              nncf is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              nncf releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              nncf saves you 15543 person hours of effort in developing the same functionality from scratch.
              It has 30993 lines of code, 2475 functions and 265 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed nncf and discovered the below as its top functions. This is intended to give you an instant insight into nncf implemented functionality, and help decide if they suit your requirements.
            • Get common argument parser .
            • Main worker function .
            • Create a list of rois .
            • Performs selective crop and resizing .
            • Create a compressed model .
            • Performs multilevel crop .
            • Searches the agent .
            • Performs a propagation step .
            • Main function to create a stage worker .
            • Assign and sample proposals .
            Get all kandi verified functions for this library.

            nncf Key Features

            No Key Features are available at this moment for nncf.

            nncf Examples and Code Snippets

            No Code Snippets are available at this moment for nncf.

            Community Discussions

            QUESTION

            why before embedding, have to make the item be sequential starting at zero
            Asked 2020-Mar-14 at 14:13

            I learn collaborative filtering from this bolg, Deep Learning With Keras: Recommender Systems.

            The tutorial is good, and the code working well. Here is my code.

            There is one thing confuse me, the author said,

            The user/movie fields are currently non-sequential integers representing some unique ID for that entity. We need them to be sequential starting at zero to use for modeling (you'll see why later).

            ...

            ANSWER

            Answered 2020-Mar-14 at 14:13

            Embeddings are assumed to be sequential.

            The first input of Embedding is the input dimension. So, if the input exceeds the input dimension the value is ignored. Embedding assumes that max value in the input is input dimension -1 (it starts from 0).

            https://www.tensorflow.org/api_docs/python/tf/keras/layers/Embedding?hl=ja

            As an example, the following code will generate embeddings only for input [4,3] and will skip the input [7, 8] since input dimension is 5.

            I think it is more clear to explain it with tensorflow;

            Source https://stackoverflow.com/questions/60341662

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

            Vulnerabilities

            No vulnerabilities reported

            Install nncf

            We suggest to install or use the package in the Python virtual environment. If you want to optimize a model from PyTorch, install PyTorch by following PyTorch installation guide. If you want to optimize a model from TensorFlow, install TensorFlow by following TensorFlow installation guide.

            Support

            Refer to the CONTRIBUTING.md file for guidelines on contributions to the NNCF repository.
            Find more information at:

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

            Find more libraries
            Install
          • PyPI

            pip install nncf

          • CLONE
          • HTTPS

            https://github.com/openvinotoolkit/nncf.git

          • CLI

            gh repo clone openvinotoolkit/nncf

          • sshUrl

            git@github.com:openvinotoolkit/nncf.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Machine Learning Libraries

            tensorflow

            by tensorflow

            youtube-dl

            by ytdl-org

            models

            by tensorflow

            pytorch

            by pytorch

            keras

            by keras-team

            Try Top Libraries by openvinotoolkit

            cvat

            by openvinotoolkitTypeScript

            openvino

            by openvinotoolkitC++

            open_model_zoo

            by openvinotoolkitPython

            anomalib

            by openvinotoolkitPython

            openvino_notebooks

            by openvinotoolkitJupyter Notebook