Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
Signed-off-by: dreamflyforever <[email protected]>
  • Loading branch information
dreamflyforever committed Jul 26, 2024
1 parent 7daf035 commit 835d365
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
### high concurrency to handle a mount of picture data
In FAIR ML DESIGN CONTEST at ESWEEK 2023 is the final top 1 of the competition!
### profile
Highport is a high-concurrency software architecture for encapsulating neural network inference. It has achieved the first place in the ESWEEK 2023 skin disease detection competition. Here is an introduction to its software architecture and some trick optimizations:

• Decryption Module: The trained model files are encrypted. To prevent them from being stolen by others, the encryption method uses XOR calculation between the password and the binary content of the weight files. The decrypted files are subjected to MD5 verification, and if it matches the predicted MD5 checksum, the decryption is considered correct.

• File Index Creation Module: The image paths and filenames for inference are stored in a table and indexed with numbers, which greatly shortens the index time for reading files.

• Concurrent Processing Module: If there is only one CPU core and there is no blocking during the task execution, the efficiency of concurrent processing tasks by threads will be lower than that of single-thread processing tasks because multithreading requires overhead for task stacks, scheduling, and locks. Since the required hardware platform is a 4-core CPU, only 4 threads are created for concurrency to achieve the highest efficiency.

• Image Processing Module: The inference efficiency of loading four models is higher than that of loading one model with four CPU concurrent lock protection.

### build
'mkdir build; cd build; cmake ..; make'

### requment
### requirement
git clone https://github.com/alibaba/MNN.git
mkidr build; cd build; cmake ..; make ; sudo make install

Expand Down

0 comments on commit 835d365

Please sign in to comment.