{"id":23776178,"url":"https://github.com/cea-list/n2d2","last_synced_at":"2025-09-15T02:14:51.578Z","repository":{"id":40636962,"uuid":"78206288","full_name":"CEA-LIST/N2D2","owner":"CEA-LIST","description":"N2D2 is an open source CAD framework for Deep Neural Network simulation and full DNN-based applications building.","archived":false,"fork":false,"pushed_at":"2024-07-03T08:13:03.000Z","size":489412,"stargazers_count":156,"open_issues_count":6,"forks_count":38,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-09-03T12:54:47.675Z","etag":null,"topics":["artificial-intelligence","deep-learning","deep-learning-library","deep-neural-networks","machine-learning","neural-network","spike-inference"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CEA-LIST.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-06T13:01:02.000Z","updated_at":"2025-08-07T12:21:42.000Z","dependencies_parsed_at":"2023-02-19T11:15:48.741Z","dependency_job_id":"64766319-5450-438a-aa4c-8d97ac6c6e63","html_url":"https://github.com/CEA-LIST/N2D2","commit_stats":{"total_commits":2754,"total_committers":20,"mean_commits":137.7,"dds":0.5853304284676834,"last_synced_commit":"efa45dd00a3fbc6c5a1eed3f2611ef841593eff7"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/CEA-LIST/N2D2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CEA-LIST%2FN2D2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CEA-LIST%2FN2D2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CEA-LIST%2FN2D2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CEA-LIST%2FN2D2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CEA-LIST","download_url":"https://codeload.github.com/CEA-LIST/N2D2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CEA-LIST%2FN2D2/sbom","scorecard":{"id":25796,"data":{"date":"2025-08-11","repo":{"name":"github.com/CEA-LIST/N2D2","commit":"ccce8ba20c2c7a8f906d357daad2badd60f8e0de"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build_linux-cpu.yml:1","Warn: no topLevel permission defined: .github/workflows/build_linux-gpu.yml:1","Warn: no topLevel permission defined: .github/workflows/build_push_docker.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build_push_docker.yml:10"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_linux-cpu.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/CEA-LIST/N2D2/build_linux-cpu.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_linux-gpu.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/CEA-LIST/N2D2/build_linux-gpu.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_push_docker.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/CEA-LIST/N2D2/build_push_docker.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_push_docker.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/CEA-LIST/N2D2/build_push_docker.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_push_docker.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/CEA-LIST/N2D2/build_push_docker.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 to nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04@sha256:8f9dd0d09d3ad3900357a1cf7f887888b5b74056636cd6ef03c160c3cd4b1d95","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-48 / GHSA-77rm-9x9h-xj3g","Warn: Project is vulnerable to: GHSA-8gq9-2x98-w8hf","Warn: Project is vulnerable to: GHSA-8qvm-5x2c-j2w7","Warn: Project is vulnerable to: GHSA-49rq-hwc3-x77w","Warn: Project is vulnerable to: GHSA-558h-mq8x-7q9g","Warn: Project is vulnerable to: GHSA-5w96-866f-6rm8","Warn: Project is vulnerable to: GHSA-647v-r7qq-24fh","Warn: Project is vulnerable to: GHSA-64jg-wjww-7c5w","Warn: Project is vulnerable to: GHSA-68v3-g9cm-rmm6","Warn: Project is vulnerable to: GHSA-6hg6-5c2q-7rcr","Warn: Project is vulnerable to: GHSA-6wfh-89q8-44jq","Warn: Project is vulnerable to: GHSA-7jvm-xxmr-v5cw","Warn: Project is vulnerable to: GHSA-7x4v-9gxg-9hwj","Warn: Project is vulnerable to: GHSA-93vr-9q9m-pj8p","Warn: Project is vulnerable to: GHSA-94mm-g2mv-8p7r","Warn: Project is vulnerable to: GHSA-f49c-87jh-g47q","Warn: Project is vulnerable to: GHSA-f637-vh3r-vfh2","Warn: Project is vulnerable to: GHSA-fqm2-gh8w-gr68","Warn: Project is vulnerable to: GHSA-fxgc-95xx-grvq","Warn: Project is vulnerable to: GHSA-gf97-q72m-7579","Warn: Project is vulnerable to: GHSA-gjh7-xx4r-x345","Warn: Project is vulnerable to: GHSA-gw97-ff7c-9v96","Warn: Project is vulnerable to: GHSA-j5w9-hmfh-4cr6","Warn: Project is vulnerable to: GHSA-qjqc-vqcf-5qvj","Warn: Project is vulnerable to: GHSA-rcf8-g8jv-vg6p","Warn: Project is vulnerable to: GHSA-6rq9-53c3-f7vj","Warn: Project is vulnerable to: PYSEC-2023-38 / GHSA-ffxj-547x-5j7c","Warn: Project is vulnerable to: PYSEC-2025-10 / GHSA-h36j-8vv3-cj52","Warn: Project is vulnerable to: PYSEC-2024-223 / GHSA-h8wv-9h96-m4hr","Warn: Project is vulnerable to: PYSEC-2024-222 / GHSA-whh8-fjgc-qp73","Warn: Project is vulnerable to: GHSA-3749-ghw9-m3mg","Warn: Project is vulnerable to: PYSEC-2022-43015 / GHSA-47fc-vmwq-366v","Warn: Project is vulnerable to: PYSEC-2025-41 / GHSA-53q9-r3pm-6pq6","Warn: Project is vulnerable to: PYSEC-2024-252 / GHSA-5pcm-hx3q-hm94","Warn: Project is vulnerable to: GHSA-887c-mr87-cxwp","Warn: Project is vulnerable to: PYSEC-2024-251 / GHSA-pg7h-5qx3-wjr3","Warn: Project is vulnerable to: PYSEC-2024-250","Warn: Project is vulnerable to: PYSEC-2024-259","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T17:50:27.048Z","repository_id":40636962,"created_at":"2025-08-14T17:50:27.049Z","updated_at":"2025-08-14T17:50:27.049Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275194018,"owners_count":25421441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","deep-learning","deep-learning-library","deep-neural-networks","machine-learning","neural-network","spike-inference"],"created_at":"2025-01-01T07:13:17.687Z","updated_at":"2025-09-15T02:14:51.539Z","avatar_url":"https://github.com/CEA-LIST.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/_static/N2D2_Logo.png\" alt=\"N2D2\" height=\"200\"\u003e\n\u003c/div\u003e\n\n----------------------------------------------------------------\n\n[![License](https://img.shields.io/badge/license-CeCILL--C-blue.svg)](LICENSE)\n\nN2D2 (for *Neural Network Design \u0026 Deployment*) is [CEA LIST](http://www-list.cea.fr/)'s CAD framework for designing and simulating\nDeep Neural Network (DNN), and building full DNN-based applications on embedded platforms.\nN2D2 is developped along with industrial and academic partners and is open source.\n\n\n| **Docs** | **`Linux CPU`**\u003cbr/\u003e\u003csub\u003e\u0026ge; GCC 4.4.7\u003c/sub\u003e | **`Linux GPU`**\u003cbr/\u003e\u003csub\u003eCUDA 11.3 + CuDNN 8\u003c/sub\u003e | **`Windows CPU`**\u003cbr/\u003e\u003csub\u003e\u0026ge; Visual Studio 2015.2\u003c/sub\u003e | **`Windows GPU`**\u003cbr/\u003e\u003csub\u003e\u0026ge; CUDA 8.0 + CuDNN 5.1\u003c/sub\u003e |\n| ---------- | --------------- | ------------------ | ------------------ | ------------------ |\n| [![Documentation Status](https://readthedocs.org/projects/n2d2/badge/?version=latest)](https://cea-list.github.io/N2D2-docs/) | [![linux-cpu](https://github.com/CEA-LIST/N2D2/actions/workflows/build_linux-cpu.yml/badge.svg)](https://github.com/CEA-LIST/N2D2/actions/workflows/build_linux-cpu.yml) | [![linux-gpu](https://github.com/CEA-LIST/N2D2/actions/workflows/build_linux-gpu.yml/badge.svg)](https://github.com/CEA-LIST/N2D2/actions/workflows/build_linux-gpu.yml) | | |\n\n\n## Usage\n\nYou can discover how to use the framework by visiting our [online documentation](https://cea-list.github.io/N2D2-docs/).\n\n- [General presentation of the framework](https://cea-list.github.io/N2D2-docs/intro/intro.html)\n- [How to compile N2D2 and perform simulations](https://cea-list.github.io/N2D2-docs/intro/simus.html)\n- How to write neural network models\n  - [With the INI interface](https://cea-list.github.io/N2D2-docs/ini/intro.html)\n  - [With the Python API](https://cea-list.github.io/N2D2-docs/python_api/intro.html)\n- How to quantize neural network models\n  - [With Post-Training Quantization](https://cea-list.github.io/N2D2-docs/quant/post.html)\n  - [With Quantization-Aware Training](https://cea-list.github.io/N2D2-docs/quant/qat.html)\n- [How to export neural network models](https://cea-list.github.io/N2D2-docs/export/CPP.html)\n- Tutorials\n\nThe N2D2 executables and **application examples** are located in the [exec/](exec) directory.\n\nYou can find examples of the N2D2 Python API [here](https://cea-list.github.io/N2D2-docs/python_api/example.html).\n\n## Installation\n\n### Get the N2D2 Source\n\n```\ngit clone --recursive git@github.com:CEA-LIST/N2D2.git\n```\n\nSpecify the *recursive* option is required as it will download the PyBind submodule.\n\n### Install Dependencies\n\nThe only mandatory dependencies for N2D2 are OpenCV and Gnuplot.\n\nMoreover, the NVIDIA CUDA and CuDNN libraries are required to enable GPU-acceleration.\nWe highly recommend to use a **CUDA version higher than 10** with a **CuDNN version higher than 7**.\n\nIf you want to disable CUDA support, export the environment variable `N2D2_NO_CUDA=1`.\n\n### Build on Linux\n\nTo compile N2D2 on Linux, please go to the root of the project and run the following:\n\n```\nmkdir build\ncd build\ncmake .. \u0026\u0026 make\n```\n\nYou should have the `n2d2` executable in `build/bin` after the compilation.\n\nTo install the Python API in your python environment, follow the tutorial on our [doc](https://cea-list.github.io/N2D2-docs/python_api/intro.html).\n\n\n## Docker Image\n\nYou can also pull a **pre-built docker image** from Docker Hub and run it with docker\n```\ndocker pull cealist/n2d2\ndocker run --gpus all cealist/n2d2:latest\n```\n\nAnother possibility is to build N2D2 from the `Dockerfile`. \nIt is supplied to build images with CUDA 10.2 support and CuDNN 8.\n\n\n## Contributing\n\nIf you would like to contribute to the N2D2 project, we’re happy to have your help! \nEveryone is welcome to contribute code via pull requests, to file issues on GitHub, \nto help people asking for help, fix bugs that people have filed, \nto add to our documentation, or to help out in any other way.\n\nWe grant commit access (which includes full rights to the issue database, such as being able to edit labels) \nto people who have gained our trust and demonstrated a commitment to N2D2. \u003cbr\u003e\nFor more details see our [contribution guidelines](CONTRIBUTING.md).\n\n\n## License\n\nN2D2 is released under the [CeCILL-C](LICENSE) license, \na free software license adapted to both international and French legal matters \nthat is fully compatible with the FSF's GNU/LGPL license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcea-list%2Fn2d2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcea-list%2Fn2d2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcea-list%2Fn2d2/lists"}