From 37ecef40f7e8617d1f920903880b447f8b47e290 Mon Sep 17 00:00:00 2001 From: lee <770918727@qq.com> Date: Wed, 11 Jun 2025 15:23:50 +0800 Subject: [PATCH] rebuild --- .gitignore | 11 + .idea/.gitignore | 8 + .idea/CopilotChatHistory.xml | 869 + .idea/CopilotSideBarWebPersist.xml | 6 + .idea/CopilotWebChatHistory.xml | 19326 ++++++++++++++++ .idea/contrast_nettest.iml | 8 + .idea/deployment.xml | 114 + .../inspectionProfiles/profiles_settings.xml | 6 + .idea/misc.xml | 7 + .idea/modules.xml | 8 + .idea/sshConfigs.xml | 8 + .idea/vcs.xml | 6 + .idea/webServers.xml | 14 + .vscode/sftp.json | 9 + __pycache__/config.cpython-38.pyc | Bin 0 -> 2526 bytes __pycache__/test_ori.cpython-38.pyc | Bin 0 -> 9067 bytes config.py | 122 + configs/__init__.py | 1 + configs/compare.yml | 69 + configs/distill.yml | 75 + configs/scatter.yml | 69 + configs/test.yml | 41 + configs/utils.py | 56 + configs/write_feature.yml | 47 + model/BAM.py | 88 + model/CBAM.py | 70 + model/Tool.py | 37 + model/__init__.py | 14 + model/__pycache__/CBAM.cpython-38.pyc | Bin 0 -> 3018 bytes model/__pycache__/Tool.cpython-38.pyc | Bin 0 -> 2081 bytes model/__pycache__/__init__.cpython-38.pyc | Bin 0 -> 882 bytes model/__pycache__/fmobilenet.cpython-38.pyc | Bin 0 -> 5027 bytes model/__pycache__/lcnet.cpython-38.pyc | Bin 0 -> 7089 bytes model/__pycache__/loss.cpython-38.pyc | Bin 0 -> 821 bytes model/__pycache__/metric.cpython-38.pyc | Bin 0 -> 3516 bytes model/__pycache__/mlp.cpython-38.pyc | Bin 0 -> 7137 bytes model/__pycache__/mobilenet_v1.cpython-38.pyc | Bin 0 -> 3329 bytes model/__pycache__/mobilenet_v2.cpython-38.pyc | Bin 0 -> 5781 bytes model/__pycache__/mobilenet_v3.cpython-38.pyc | Bin 0 -> 6588 bytes model/__pycache__/mobilevit.cpython-38.pyc | Bin 0 -> 8187 bytes model/__pycache__/resbam.cpython-38.pyc | Bin 0 -> 4275 bytes model/__pycache__/resnet_pre.cpython-38.pyc | Bin 0 -> 14701 bytes model/__pycache__/utils.cpython-38.pyc | Bin 0 -> 288 bytes model/__pycache__/vit.cpython-38.pyc | Bin 0 -> 5415 bytes model/benchmark.py | 142 + model/compare.py | 48 + model/distill.py | 182 + model/fmobilenet.py | 124 + model/lcnet.py | 233 + model/loss.py | 18 + model/metric.py | 94 + model/mlp.py | 274 + model/mobilenet_v1.py | 148 + model/mobilenet_v2.py | 200 + model/mobilenet_v3.py | 200 + model/mobilevit.py | 265 + model/quant_test_resnet.py | 412 + model/resbam.py | 142 + model/resnet.py | 189 + model/resnet_attention.py | 271 + model/resnet_pre.py | 480 + model/utils.py | 4 + model/vit.py | 42 + test_ori.py | 331 + tools/__init__.py | 0 .../gift_data_pretreatment.cpython-38.pyc | Bin 0 -> 2130 bytes tools/dataset.py | 68 + tools/dataset.txt | 10 + tools/fp32comparefp16.py | 112 + tools/gift_assessment.py | 369 + tools/gift_data_pretreatment.py | 92 + tools/json_contrast.py | 118 + tools/model_onnx_transform.py | 63 + tools/model_rknn_transform.py | 186 + tools/operate_usearch.py | 233 + tools/threshold_partition.py | 84 + tools/write_feature_json.py | 411 + train_compare.py | 142 + train_distill.py | 205 + 79 files changed, 26981 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/CopilotChatHistory.xml create mode 100644 .idea/CopilotSideBarWebPersist.xml create mode 100644 .idea/CopilotWebChatHistory.xml create mode 100644 .idea/contrast_nettest.iml create mode 100644 .idea/deployment.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/sshConfigs.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/webServers.xml create mode 100644 .vscode/sftp.json create mode 100644 __pycache__/config.cpython-38.pyc create mode 100644 __pycache__/test_ori.cpython-38.pyc create mode 100644 config.py create mode 100644 configs/__init__.py create mode 100644 configs/compare.yml create mode 100644 configs/distill.yml create mode 100644 configs/scatter.yml create mode 100644 configs/test.yml create mode 100644 configs/utils.py create mode 100644 configs/write_feature.yml create mode 100644 model/BAM.py create mode 100644 model/CBAM.py create mode 100644 model/Tool.py create mode 100644 model/__init__.py create mode 100644 model/__pycache__/CBAM.cpython-38.pyc create mode 100644 model/__pycache__/Tool.cpython-38.pyc create mode 100644 model/__pycache__/__init__.cpython-38.pyc create mode 100644 model/__pycache__/fmobilenet.cpython-38.pyc create mode 100644 model/__pycache__/lcnet.cpython-38.pyc create mode 100644 model/__pycache__/loss.cpython-38.pyc create mode 100644 model/__pycache__/metric.cpython-38.pyc create mode 100644 model/__pycache__/mlp.cpython-38.pyc create mode 100644 model/__pycache__/mobilenet_v1.cpython-38.pyc create mode 100644 model/__pycache__/mobilenet_v2.cpython-38.pyc create mode 100644 model/__pycache__/mobilenet_v3.cpython-38.pyc create mode 100644 model/__pycache__/mobilevit.cpython-38.pyc create mode 100644 model/__pycache__/resbam.cpython-38.pyc create mode 100644 model/__pycache__/resnet_pre.cpython-38.pyc create mode 100644 model/__pycache__/utils.cpython-38.pyc create mode 100644 model/__pycache__/vit.cpython-38.pyc create mode 100644 model/benchmark.py create mode 100644 model/compare.py create mode 100644 model/distill.py create mode 100644 model/fmobilenet.py create mode 100644 model/lcnet.py create mode 100644 model/loss.py create mode 100644 model/metric.py create mode 100644 model/mlp.py create mode 100644 model/mobilenet_v1.py create mode 100644 model/mobilenet_v2.py create mode 100644 model/mobilenet_v3.py create mode 100644 model/mobilevit.py create mode 100644 model/quant_test_resnet.py create mode 100644 model/resbam.py create mode 100644 model/resnet.py create mode 100644 model/resnet_attention.py create mode 100644 model/resnet_pre.py create mode 100644 model/utils.py create mode 100644 model/vit.py create mode 100644 test_ori.py create mode 100644 tools/__init__.py create mode 100644 tools/__pycache__/gift_data_pretreatment.cpython-38.pyc create mode 100644 tools/dataset.py create mode 100644 tools/dataset.txt create mode 100644 tools/fp32comparefp16.py create mode 100644 tools/gift_assessment.py create mode 100644 tools/gift_data_pretreatment.py create mode 100644 tools/json_contrast.py create mode 100644 tools/model_onnx_transform.py create mode 100644 tools/model_rknn_transform.py create mode 100644 tools/operate_usearch.py create mode 100644 tools/threshold_partition.py create mode 100644 tools/write_feature_json.py create mode 100644 train_compare.py create mode 100644 train_distill.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..855e976 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +*.pth +blog/ +data/ +experiment/ +log/ +shop_xlsx/ +loss/ +checkpoints/ +search_library/ +quant_imgs/ +README.md \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/CopilotChatHistory.xml b/.idea/CopilotChatHistory.xml new file mode 100644 index 0000000..4971ae3 --- /dev/null +++ b/.idea/CopilotChatHistory.xml @@ -0,0 +1,869 @@ + + + +