# oldman_deploy **Repository Path**: sunqiangAAA/oldman_deploy ## Basic Information - **Project Name**: oldman_deploy - **Description**: 养老院模型部署 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-12 - **Last Updated**: 2024-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: 模型加密, onnx, Python, FP16 ## README # 养老院模型部署测试 ## 一、安装 ```shell conda create -n onnxruntime-gpu python=3.10 conda activate onnxruntime-gpu pip install -r requirements.txt ``` ## 二、运行 模型文件放置在`models`文件下,名称为`oldman_detect_fp16.onnx`,config.json必须与onnx_net.py同级 ### 1、模型`FP16`量化 ```shell python convert_f16.py ``` ### 2、模型加密 ```shell python crypto.py ``` 加密后在`models`下生成`oldman_detect_fp16.bin` ### 3、模型推理测试 ```shell python oldman_detect.py ```