Skip to content

Repository files navigation

English|中文

About Ascend Samples Repository

Ascend Computing Language (AscendCL) provides a collection of C language APIs for users to develop deep neural network apps for object recognition and image classification, ranging from device management, context management, stream management, memory management, to model loading and execution, operator loading and execution, and media data processing. You can call AscendCL APIs through a third-party framework to utilize the compute capability of the Ascend AI Processor, or encapsulate AscendCL into third-party libraries, to provide the runtime and resource management capabilities of the Ascend AI Processor.

This repository provides a wide range of samples developed based on AscendCL APIs. When developing your own samples, feel free to refer to the existing samples in this repository.

Release Notes

Please select the product you are using on the Hardware Platform Page, select the supported CANN version from the drop-down box and check the matching relationship.

Directory Structure

directorydescription
commonSample warehouse public file directory
cplusplusC++ sample directory of samples warehouse
pythonsamples warehouse python sample directory
stSamples warehouse sample test case directory

Version and Product Support per Sample

Sample NameLanguageProductDescription
DVPP interface samplec++>=5.0.4Call the relevant interface of dvpp to realize image processing. Includes crop/vdec/venc/jpegd/jpege/resize/batchcrop/cropandpaste and other functions
Custom operator samplec++>=5.0.4Custom operator operation verification, including Add operator/batchnorm operator/conv2d operator/lstm operator/matmul operator/reshape operator, etc.
200DK peripheral samplec++>=5.0.4200DK peripheral interface related cases, including functions such as configuring GPIO pins/using i2c to read and write data/using uart1 serial port to send and receive data/using camera to take photos or videos.
C++ classification samplec++>=5.0.4Use the googlenet/ResNet-50 model to classify and infer the input data. Contains multiple feature samples such as pictures/videos/dynamic batch/multi-batch/video stream/universal camera.
C++ detection samplec++>=5.0.4Use the object detection/yolov3/yolov4/vgg_ssd/faster_rcnn model to detect the input data. Contains various feature samples such as general picture/universal video//video stream/universal camera.
C++ natural language processing samplec++>=5.0.4Use the nlp model to reason about the input data.
C++ other samplec++>=5.0.4Other model reasoning examples, including black and white image coloring, super-segmentation, image enhancement, etc.
C++ multithreading samplec++>=5.0.4Use yolov3, object detection and other models to perform multi-threaded inference examples on input data.
C++ user contribution samplec++>=5.0.4Inference sample contributed by users.
Python classification samplepython>=5.0.4Use the googlenet/inceptionv3/vgg16 model to classify and infer the input data.
python detection samplepython>=5.0.4Use the googlenet/inceptionv3/vgg16 model to classify and infer the input data.
Python segmentation samplepython>=5.0.4Use the segmentation model to segment the input image.
python natural language processing samplepython>=5.0.4Use the nlp model to reason about the input data.
python other samplepython>=5.0.4Other model reasoning sample, including black and white image coloring, image restoration, etc.
End-to-end sample from training to inferencepython>=5.0.4End-to-end sample guidance from training to deployment, including guidance on mask recognition, garbage classification, cat and dog battles, etc.
Python industry samplepython>=5.0.4For more complex samples, combine hardware or use multi-model and multi-threaded samples. Such as removing the designated foreground target sample of the image, the robot arm sample, etc.
Python user contribution samplepython>=5.0.4Inference sample contributed by users.

Sample Deployment

Deploy and run a sample by referring to the corresponding README file.

Documentation

Obtain related documentation at Ascend Documentation.

Community

Get support from our developer community. Find answers and talk to other developers in our forum.

Ascend website: https://www.huaweicloud.com/intl/en-us/ascend/home.html

Ascend forum: https://forum.huawei.com/enterprise/en/forum-100504.html

Contribution

Welcome to contribute to Ascend Samples. For more details, please refer to our Contribution Wiki.

License

Apache License 2.0

About

No description, website, or topics provided.

Resources

Stars

165 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages