mirror of
				https://github.com/PaddlePaddle/FastDeploy.git
				synced 2025-10-31 03:46:40 +08:00 
			
		
		
		
	 1135d33dd7
			
		
	
	1135d33dd7
	
	
	
		
			
			* 第一次提交 * 补充一处漏翻译 * deleted: docs/en/quantize.md * Update one translation * Update en version * Update one translation in code * Standardize one writing * Standardize one writing * Update some en version * Fix a grammer problem * Update en version for api/vision result * Merge branch 'develop' of https://github.com/charl-u/FastDeploy into develop * Checkout the link in README in vision_results/ to the en documents * Modify a title * Add link to serving/docs/ * Finish translation of demo.md * Update english version of serving/docs/ * Update title of readme * Update some links * Modify a title * Update some links * Update en version of java android README * Modify some titles * Modify some titles * Modify some titles * modify article to document * update some english version of documents in examples * Add english version of documents in examples/visions * Sync to current branch * Add english version of documents in examples
		
			
				
	
	
		
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| English | [简体中文](README_CN.md)
 | |
| # PaddleClas C++ Deployment Example
 | |
| 
 | |
| `infer.cc` in this directory provides a quick example of accelerated deployment of the ResNet50_vd model on SOPHGO BM1684x.
 | |
| 
 | |
| Before deployment, the following two steps need to be confirmed:
 | |
| 
 | |
| 1. Hardware and software environment meets the requirements.
 | |
| 2. Compile the FastDeploy repository from scratch according to the development environment.
 | |
| 
 | |
| For the above steps, please refer to [How to Build SOPHGO Deployment Environment](../../../../../../docs/en/build_and_install/sophgo.md).
 | |
| 
 | |
| ## Generate Basic Directory Files
 | |
| 
 | |
| The routine consists of the following parts:
 | |
| ```text
 | |
| .
 | |
| ├── CMakeLists.txt
 | |
| ├── build  # Compile Folder
 | |
| ├── image  # Folder for images
 | |
| ├── infer.cc
 | |
| ├── preprocess_config.yaml # Preprocessing configuration sample file.
 | |
| └── model  # Folder for models
 | |
| ```
 | |
| 
 | |
| ## Compile
 | |
| 
 | |
| ### Compile and Copy SDK to folder thirdpartys
 | |
| 
 | |
| Please refer to [How to Build SOPHGO Deployment Environment](../../../../../../docs/en/build_and_install/sophgo.md) to compile SDK.After compiling, the fastdeploy-0.0.3 directory will be created in the build directory.
 | |
| 
 | |
| ### Copy model and configuration files to folder Model
 | |
| Convert Paddle model to SOPHGO bmodel model. For the conversion steps, please refer to [Document](../README.md).
 | |
| Please copy the converted SOPHGO bmodel to folder model.
 | |
| Copy the preprocessing configuration file to folder model as well.
 | |
| ```bash
 | |
| cp preprocess_config.yaml ./model
 | |
| ```
 | |
| 
 | |
| ### Prepare Test Images to folder image
 | |
| ```bash
 | |
| wget https://gitee.com/paddlepaddle/PaddleClas/raw/release/2.4/deploy/images/ImageNet/ILSVRC2012_val_00000010.jpeg
 | |
| cp ILSVRC2012_val_00000010.jpeg ./images
 | |
| ```
 | |
| 
 | |
| ### Compile example
 | |
| 
 | |
| ```bash
 | |
| cd build
 | |
| cmake .. -DFASTDEPLOY_INSTALL_DIR=${PWD}/fastdeploy-0.0.3
 | |
| make
 | |
| ```
 | |
| 
 | |
| ## Running Routines
 | |
| 
 | |
| ```bash
 | |
| ./infer_demo model images/ILSVRC2012_val_00000010.jpeg
 | |
| ```
 | |
| 
 | |
| 
 | |
| - [Model Description](../../)
 | |
| - [Model Conversion](../)
 |