6703 views|7 replies

382

Posts

9

Resources
The OP
 

Post a warm-up post for the 3rd RISC-V Application Innovation Competition of Xuantie Cup [Copy link]

I tried to install the inference framework on LicheePi 4A, but it crashed halfway through the installation. After repeated checks, I found that it was caused by insufficient space. So I tried a lightweight inference framework NCNN. First, I reinstalled the system. At this time, there was no cmake, no g++, and no opencv in the system. After installing these, less than 20% of the entire /root was left. I will not go into details about the specific installation method. In short, install cmake and g++ through apt, and the command is

sudo apt install cmake g++ --fix-missing

If opencv cannot be installed directly through apt, put the opencv source code compressed package (download path is https://codeload.github.com/opencv/opencv/zip/refs/tags/4.8.0 ) in a directory and unzip it. The command is

sudo unzip 4.8.0.zip

After decompression, enter the directory opencv-4.8.0, create a build directory and compile, you can execute the command

sudo cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..

You can see various configuration information, such as

Then use sudo make and sudo make install to complete the compilation and installation.

Installing NCNN is a little more troublesome, and requires the use of git, but you can also git to your computer first, then drag the entire directory into the board using sftp, and download the ncnn package from github:

sudo git clone --depth=1 https://github.com/Tencent/ncnn.git

There are still frequent errors. Use https://ghproxy.com to speed up.

git clone --depth=1 https://ghproxy.com/https://github.com/Tencent/ncnn.git

Then install it, it is very familiar

cd ncnn

sudo mkdir build

cd build

sudo cmake -DNCNN_VULKAN=OFF ..

sudo make

sudo make install

The installation is complete:

You can see that it supports converting various format models to use on ncnn (I will study it in depth when I have time, here I will only use the reference example squeezenet).

Copy squeezenet_v1.1.bin and squeezenet_v1.1.param in the examples file to the build/examples directory, and put a panda photo tobot.jpg in the same directory.

Using the command line to detect images

./ squeezent tobot.jpg

You can see that the top3 classifications of the image are output.

Open the synset_words.txt file again and you can see line 388

This means that the panda can be identified very accurately (with a probability of 99.9%).

After this installation, there is basically no space left under root, and the app will basically freeze after running for a few minutes. I will study later how to install the app on a TF card.

This post is from Electronics Design Contest

Latest reply

Does anyone have the schematic diagram of this power supply? Or something similar is also OK. I want to modify it into a power supply with adjustable current and voltage.  Details Published on 2024-3-22 14:36
 
 

5221

Posts

239

Resources
2
 

Can be sent to the Pingtouge RISC-V activity area

This post is from Electronics Design Contest
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

6841

Posts

11

Resources
3
 
You got the development board so soon? It seems that you have a chance to win the first place.
This post is from Electronics Design Contest
 
 
 

6787

Posts

2

Resources
4
 

Have you received the first batch of boards? I don’t know if they have passed yet.

This post is from Electronics Design Contest
 
 
 

4771

Posts

12

Resources
5
 
Looks like my board is almost ready.
This post is from Electronics Design Contest
 
 
 

623

Posts

0

Resources
6
 

The host is too fast.

This post is from Electronics Design Contest
 
 
 

6069

Posts

4

Resources
7
 

The system crashed and exited halfway through the installation. After repeated checking, I found out that it was caused by insufficient space. The OP was too quick!

This post is from Electronics Design Contest
 
 
 

1

Posts

0

Resources
8
 
Does anyone have the schematic diagram of this power supply? Or something similar is also OK. I want to modify it into a power supply with adjustable current and voltage.
This post is from Electronics Design Contest
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Huawei Telecom Basic Knowledge Question Bank

Basic Telecommunications Knowledge Question Bank (The following questions can be asked in the form of fill-in-the-blank, ...

Hardware Design Manual

Hardware Design Manual

MATLAB APP Designer serial port debugging tool writing

This post was last edited by lb8820265 on 2019-5-9 23:11 Previously, we introduced two ways to use VC6 to make serial ...

MSP430 standby power consumption problem

Recently, due to project reasons, I used TI's MSP430F149 microcontroller. During the use, I encountered some problems wi ...

Video explains the triggering modes of oscilloscopes and what they mean

The principle and usage of each trigger mode are explained in the form of video, including edge trigger, pulse width tri ...

ssd1306 Chinese and picture display

This post was last edited by lemon1394 on 2021-8-17 23:19 I have found many Chinese displays of ssd1306 introduced on t ...

Embedded Qt-Control Hardware: Slide bar controls RGB lights

The previous articles introduced Qt routines, which are all hardware-independent and can run on both Windows and embed ...

Live broadcast of STM32 Global Conference at 10 am today [send development board and gifts]

With STM32, STMicroelectronics is committed to helping developers around the world build smarter, more connected and mor ...

What is the core technology in the battery management system of new energy vehicles?

Simply put, the core content of battery management is SOC (battery state of charge) and SOH (battery state of health). ...

XD08M3232 is a domestically produced 8-bit high-performance Flash proximity sensing microcontroller with an enhanced 1T8051 core.

XD08M3232 is a domestically produced 8-bit high-performance Flash proximity sensing microcontroller with an enhanced 1T8 ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list