Sophon Artificial Intelligent Library for deep learning on Sophon products.
Project description
_____ __ ____ ____
/ ___/____ ____ / /_ ____ ____ / _/___ / __/__ ________ ____ ________
\__ \/ __ \/ __ \/ __ \/ __ \/ __ \______ / // __ \/ /_/ _ \/ ___/ _ \/ __ \/ ___/ _ \
___/ / /_/ / /_/ / / / / /_/ / / / /_____// // / / / __/ __/ / / __/ / / / /__/ __/
/____/\____/ .___/_/ /_/\____/_/ /_/ /___/_/ /_/_/ \___/_/ \___/_/ /_/\___/\___/
/_/
Sophon-Inference
Sophon Inference, which supplies a bunch of high level APIs, is a upper module in BMNNSDK to help user deploying deep-learning inference networks and deep vision primitives on Sophon TPU rapidly.
SAIL: Sophon Artificial Intelligent Library for online deployment.
- It's a wrapper of bmruntime, bmdecoder, bmcv, bmlib;
- Provide both C++ and Python APIs;
- Automatically manage memory of tensors;
## Prerequisites and Compilation
- **BMNNSDK2** Required
- **CMake** Required
- **OpenCV3(at least 3.4.6)** Required for C++ samples
- **Python3** Optional for python samples
- **Sphinx** Optional for documents
```shell
# install bmnnsdk2
cd bmnnsdk2/scripts
# extract libs adaptable to the OS
./install_lib.sh nntc
# remove old driver and install the new one, 'pcie' for x86_64 and 'arm_pcie' for aarch64
sudo ./remove_driver_pcie.sh # for x86_64
sudo ./uninstall_driver_pcie.sh # for x86_64
# configure the environment. 'pcie' for x86_64 and 'arm_pcie' for aarch64
source ./envsetup_pcie.sh # for x86_64
# compilation
mkdir build
cd build
cmake ..
make
Testing
TODO
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- haipeng.wan - Initial work
- hong.liu - Initial work
- juntao.tong - Initial work
- lian.he - Initial work
- mike.wu - Initial work
- tong.liu - Initial work
- zhenpeng.xiao - Initial work
- huaishan.yuan - Contributor
- shanglin.guo - Contributor
- zhiju.huang - Maintainer
See also the list of Contributors who participated in this project.
Coding Style Guide
This project contains codes written in C++, Python and Shell. We refer to Google Style Guides with some minor modifications.
License
This project is licensed under the Apache License, Version 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sophon-0.0.1.tar.gz.
File metadata
- Download URL: sophon-0.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c00edb089bdde538382254c58809e40df4c79c05567510c3a37d60bb0d1f9d99
|
|
| MD5 |
e68ba5980343855e9faab5154813f22a
|
|
| BLAKE2b-256 |
1ccecff2aac66a5922d269c5b500e11a49f96d1eca245329906e0532cc778575
|
File details
Details for the file sophon-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sophon-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f3a263973f43c875c48f0db8ae0e232fc5b98fcd4696647d25d1be91769b268
|
|
| MD5 |
a66cc594c510a8f0de5f92c1ac906a8d
|
|
| BLAKE2b-256 |
7b7ad6942173693e1a7690429732547a0299e1773d88d070ace3aaa9ed0408f9
|