-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Port TinyMaix to STM32F411 | ||
|
||
## Chip | ||
|Item |Parameter| | ||
|-- |--| | ||
|Chip |STM32F411| | ||
|Arch |ARM Cortex M4| | ||
|Freq |150M | | ||
|Flash|512KB| | ||
|RAM |128KB| | ||
|Acceleration| ARM SIMD| | ||
|
||
## Board | ||
WeAct Studio STM32F411CEU6 V3.0 | ||
<a href="assets/STM32F411CEU6.png"><img width=300 src="assets/STM32F411CEU6.png"/></a> | ||
|
||
## Development Environment | ||
MDK 5.37 | ||
|
||
## Step/Project | ||
Just simple edit tm_port.h... | ||
|
||
Porting Project in: | ||
https://github.com/Zepan/TinyMaix_STM32F411 | ||
|
||
|
||
|
||
## Result | ||
|config |mnist|cifar|mbnet96|Note| | ||
|--- |--- |--- |--- |--- | | ||
|O0 CPU |2 |136 |549 || | ||
|O1 CPU |2 |120 |554 || | ||
|O0 SIMD |2 |107 |422 || | ||
|O1 SIMD |2 |75 |420 || | ||
|
||
|
||
## Note | ||
STM32F411 Flash is too small to place 96x96 image, use random data instead. | ||
O1 slow than O0 is beacuse Flash random read speed limit. | ||
Use mbnet 128 input will much faster. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Rewarded Porting TinyMaix | ||
In order to show the portability of TinyMaix, Sipeed launched the Rewarded Porting TinyMaix~ | ||
|
||
From now on until **December 31, 2022**, add support for any new chip that is not in the current tested list (see benchmark.md), | ||
You can get Sipeed's latest AIoT board: 480M C906 + 320M E907 + WiFi/BT + 64M PSRAM + 2MP Camera + CTP LCD ~ | ||
|
||
Rules: | ||
1. The same series of chips are considered as one chip. For example, stm32f411 has been transplanted, so stm32f401 is considered as the same chip; Stm32h7 and stm32f7 are considered as different series chips as "F7" and "H7" is different | ||
2. Porting of non-MCU chip is allowed, but only record one chip for one core. For example, arm cortex A7 only takes the first one A7 chip commit. | ||
3. The benchmark of the runnable model within the chip capability need to be tested, from low to high is: | ||
1. mnist 2KB Flash, 2KB RAM //Handwritten digit recognition (28x28x1) | ||
2. cifar 89KB Flash, 11KB RAM //10 classes classification(32x32x3) | ||
3. mbnet 485KB Flash, 54KB RAM //1000 classes,mobilenet v1 0.25, 96x96x3 input | ||
4. Write a porting log (refer to doc/porting/port_STM32F411.md), and submit PR to this repo. | ||
|
||
# Advanced feature Awards | ||
Those who provide TinyMaix with the following advanced function improvements can receive a Quad-Core C910 board in addition! | ||
1. Add mobilenetv2 support for TinyMaix, that is, mainly add concat operator (involving model conversion script and tinymaix C code, requiring model structure compatibility) | ||
2. Take mobilenet V1 0.25 96x96 as the test model and the corresponding architecture O1 as the benchmark to try to optimize the execution speed and increase the execution speed by at least 15% | ||
3. Improve FP8 support for tinymaix, support FP8 mobilenetv1 model | ||
4. Add a new architecture acceleration for tinymaix, such as xtensa's vector instruction set, and reduce infer time by at least 25% compared with the original CPU execution speed | ||
5. Other advanced function updates approved by sipeed | ||
|
||
# Recruit | ||
For users in China we will provide priority interview opportunity if you submit result successfully. (send resume to [email protected]) |