本项目是CANN提供的图像处理、目标检测相关的算子库,实现网络在NPU上加速计算。
| Files | Last commit | Last update |
|---|---|---|
ci: skip package verification for Check_Example Co-authored-by: KaranocaVe<karanocave@qq.com> # message auto-generated for no-merge-commit merge: !2078 merge fix/check-example-skip-package-verify-20261018 into master ci: skip package verification for Check_Example Created-by: KaranocaVe Commit-by: KaranocaVe Merged-by: cann-robot Description: The Check_Example job validates examples and UT but does not build a .run package. The shared compile workflow then unconditionally runs verify-package and artifact upload, causing an unrelated missing-package failure. Skip package verification and upload for Check_Example while retaining the check report and CSV upload. See merge request: cann/ops-cv!2078 | 4 days ago | |
refactor(pypto): tiling 生成头改为显式 include Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !1642 merge pr-1614 into master refactor(pypto): tiling 生成头改为显式 include Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: ## 变更说明 将 PyPTO 算子 tiling 生成头的接入方式从 -include 强制包含改为**显式 include**,并同步收敛 pypto-pro 的 arch 映射与文档。 ## 主要改动 - **cmake/func.cmake** - pypto_force_include_tiling(-include 强制包含)改为 pypto_include_tiling_gen():configure 阶段生成的 tiling/tilingkey 头文件目录经 target_include_directories 注入 tiling 目标 include 路径(CMake 3.16 兼容),*_tiling*.cpp 由源文件显式 include(顺序:tilingkey 在前,tiling 在后)。 - pypto_soc_to_arch 收敛为仅 ascend950 → 3510(pypto-pro 仅支持 dav-3510 arch);环境变量 PYPTO_JIT_ARCH 更名为 PYPTOPRO_JIT_ARCH。 - **scripts/util/pypto_codegen.py**:_ARCH_MAP 同步收敛(仅 ascend950 → 3510),导出 PYPTOPRO_JIT_ARCH。 - **cmake/gen_ops_info.cmake**:prepare_compile_from_config / compile_from_config 两处 arch 注释同步更正(默认为 dav-3510)。 - **examples/add_example_pypto** - op_host/add_example_pypto_tiling.cpp:显式 include 生成的 AddExamplePyptoTilingKey_tilingkey.h / AddExamplePyptoTiling_tiling.h。 - op_host/add_example_pypto_def.cpp:arch 注释更正(pypto-pro 仅支持 dav-3510)。 - README.md / README_en.md:接入方式说明更新为显式 include,新增"运行验证"章节(编译/安装/运行命令与预期输出,中英文对齐)。 - **examples/README.md / README_en.md**:目录树与样例表格补充 add_example_pypto 样例(中英文成对修改)。 ## 验证 - 本地编译通过:bash build.sh --pkg --soc=ascend950 --ops=add_example_pypto -j16(CANN 9.3.0),kernel 二进制 / tiling 库 / proto / 安装包产物齐全。 - ruff、clang-format v18.1.8(与 CI 同版本)、git diff --check 均通过。 ## 关联 Issue 关联 issue: #2100(需求与设计说明) See merge request: cann/ops-cv!1642 | 1 day ago | |
[Docs] Clarify Resize tf_crop_and_resize support Co-authored-by: KaranocaVe<karanocave@qq.com> # message auto-generated for no-merge-commit merge: !2690 merge codex/handoff-2026-11-18-ops-cv-resize-tf-crop-and-resize-roi-doc-01 into master [Docs] Clarify Resize tf_crop_and_resize support Created-by: KaranocaVe Commit-by: KaranocaVe Merged-by: cann-robot Description: # [Docs] Clarify Resize tf_crop_and_resize support ## Reason The public Resize description documents ROI-based crop coordinates and an extrapolation value for this mode. The graph-fusion replacement maps coordinate modes to the target operator's align_corners and half_pixel_centers flags, and does not pass ROI or extrapolation behavior to the target operator. Users can otherwise assume that the documented mode is honored on this path. ## Change Add a note to the Resize operator description that limits the mode on this path and directs users to a backend that explicitly supports it. No operator behavior changes are included. ## 验证 - Targeted load_case() and validate_handoff() for this case: passed. Required material files - 2026-09-23-cannbot-plugin-install-doc-01 has an unsupported - outbound.receipts.pr_reply.discussion_id field. This case itself passes targeted validation. 关联 Issue: https://gitcode.com/cann/ops-cv/issues/1848 See merge request: cann/ops-cv!2690 | 6 days ago | |
master英文合入 Co-authored-by: y60124828<yanglou1@h-partners.com> # message auto-generated for no-merge-commit merge: !2977 merge master into master master英文合入 Created-by: yanglu-1 Commit-by: y60124828 Merged-by: cann-robot Description: ## 描述 master分支下docs/en文件下英文文档回稿,需要补充合入 ## 关联的Issue 关联Issue [#2109](https://gitcode.com/cann/ops-cv/issues/2109) ## 测试 暂不涉及 ## 文档更新 补充docs/en文件夹下回稿的英文文档 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!2977 | 1 day ago | |
refactor(pypto): tiling 生成头改为显式 include Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !1642 merge pr-1614 into master refactor(pypto): tiling 生成头改为显式 include Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: ## 变更说明 将 PyPTO 算子 tiling 生成头的接入方式从 -include 强制包含改为**显式 include**,并同步收敛 pypto-pro 的 arch 映射与文档。 ## 主要改动 - **cmake/func.cmake** - pypto_force_include_tiling(-include 强制包含)改为 pypto_include_tiling_gen():configure 阶段生成的 tiling/tilingkey 头文件目录经 target_include_directories 注入 tiling 目标 include 路径(CMake 3.16 兼容),*_tiling*.cpp 由源文件显式 include(顺序:tilingkey 在前,tiling 在后)。 - pypto_soc_to_arch 收敛为仅 ascend950 → 3510(pypto-pro 仅支持 dav-3510 arch);环境变量 PYPTO_JIT_ARCH 更名为 PYPTOPRO_JIT_ARCH。 - **scripts/util/pypto_codegen.py**:_ARCH_MAP 同步收敛(仅 ascend950 → 3510),导出 PYPTOPRO_JIT_ARCH。 - **cmake/gen_ops_info.cmake**:prepare_compile_from_config / compile_from_config 两处 arch 注释同步更正(默认为 dav-3510)。 - **examples/add_example_pypto** - op_host/add_example_pypto_tiling.cpp:显式 include 生成的 AddExamplePyptoTilingKey_tilingkey.h / AddExamplePyptoTiling_tiling.h。 - op_host/add_example_pypto_def.cpp:arch 注释更正(pypto-pro 仅支持 dav-3510)。 - README.md / README_en.md:接入方式说明更新为显式 include,新增"运行验证"章节(编译/安装/运行命令与预期输出,中英文对齐)。 - **examples/README.md / README_en.md**:目录树与样例表格补充 add_example_pypto 样例(中英文成对修改)。 ## 验证 - 本地编译通过:bash build.sh --pkg --soc=ascend950 --ops=add_example_pypto -j16(CANN 9.3.0),kernel 二进制 / tiling 库 / proto / 安装包产物齐全。 - ruff、clang-format v18.1.8(与 CI 同版本)、git diff --check 均通过。 ## 关联 Issue 关联 issue: #2100(需求与设计说明) See merge request: cann/ops-cv!1642 | 1 day ago | |
[Documentation] Document CLAHE unknown-rank shape contract Co-authored-by: KaranocaVe<karanocave@qq.com> # message auto-generated for no-merge-commit merge: !2774 merge fix/2026-11-20-ops-cv-clahe-unknown-rank-doc-01 into master [Documentation] Document CLAHE unknown-rank shape contract Created-by: KaranocaVe Commit-by: KaranocaVe Merged-by: cann-robot Description: # [Documentation] Document CLAHE unknown-rank shape contract ## Problem The CLAHE README lists concrete rank 2, 3, and 4 input shapes but omits that graph-time InferShape accepts the unknown-rank sentinel [-2] and unknown dimensions -1, preserving them in the output shape. Runtime Tiling requires a concrete rank and positive dimensions. ## Change Document the graph-time [-2] and -1 behavior and the requirement to resolve the shape before runtime Tiling. The patch changes only the CLAHE README. ## Evidence and verification ValidShape(shape, true) accepts the graph-time unknown values, InferShapeCLAHE copies them to the output, and runtime validation requires concrete dimensions. Existing Host UT covers these cases. The documentation-only patch passed its case checks. 关联 Issue: https://gitcode.com/cann/ops-cv/issues/1919 See merge request: cann/ops-cv!2774 | 3 days ago | |
fix(paste_sub_img): 整改错误码上报为正式语义码 Co-authored-by: yu_qinfei<yuqinfei1@h-partners.com> # message auto-generated for no-merge-commit merge: !2934 merge fix/paste-sub-img-error-code-remediation into master fix(paste_sub_img): 整改错误码上报为正式语义码 Created-by: yu_qinfei Commit-by: yu_qinfei Merged-by: cann-robot Description: ## 整改内容 按 ops-error-code-remediation Skill 流程,对 PasteSubImg 完成错误码整改(基于 master 最新版冻结 46 项候选,全部 FIXED)。**单 commit**(1f94c09),仅 op_host 2 文件(+216/-57)。 **错误码映射** - OP_CHECK_NULL_WITH_CONTEXT、OP_LOGE(context,...) 隐式 EZ9999 → **EZ0004**(OP_LOGE_WITH_INVALID_INPUT,带参数名) - shape/dim 校验(3D/1D/长度4/C维一致/维度为正)→ **EZ0010/EZ0012**(含 actual+reason) - dtype 校验 → **EZ0020/EZ0021**(含支持集合) - 取值/范围(scale/坐标顺序/负坐标/越界)→ **EZ0024/EZ0026** - 框架侧空指针(GetPlatformInfo/GetAttrs/GetWorkspaceSizes/GetOutputShape(0))、tiling 内部失败(GetTilingData/memset_s/坐标读取)与平台查询值(coreNum/ubSize)→ **EZ1008**(REPORT_PREDEFINED_ERR_MSG{opName,reason},reason 含 rc) **检视意见修复**(P2×2/P3×3) - P2:coord 长度校验日志实参改用 Ops::Base::ToString(*shape),未知 rank 下不再越界取 GetDim(0) - P2:scale 日志实参与全仓一致改为 .c_str() - P3:ReadCoordValue 统一拥有上报(tensor 空→EZ0004、data 不可读→EZ1008),调用方仅 PLOG 透传,消除同一故障双错误码 - P3:框架侧空指针与 infershape 输出 shape 为空改报 **EZ1008**,不再以非算子入参名上报 EZ0004 - P3:coreNum/ubSize 为平台查询值而非算子参数,归 **EZ1008**("GetCoreNumAiv/GetCoreMemSize(UB) returned 0; Tiling cannot continue") - 公开返回值保持 GRAPH_FAILED 不变;负值/未知 rank 等既有校验语义零改动 **验证**:候选—审计对账 = 0、处置对账 check PASS(46/46 FIXED)、复扫残留 0、E9 新增 = 0、废弃码 = 0;真实 target 编译命令重放 -fsyntax-only 通过;CI 通过(无 UT 增量版本,覆盖率门禁通过)。 --- **关联 Issue**: #2103 Closes #2103 See merge request: cann/ops-cv!2934 | 13 hours ago | |
fix(to_absolute_b_box): arch35 tiling UT 增加 ascend950 构建门控,修复默认910b全量UT段错误 Co-authored-by: zhaoxinmeng<zhaoxinmeng1@huawei.com> # message auto-generated for no-merge-commit merge: !2969 merge ut-fix into master fix(to_absolute_b_box): arch35 tiling UT 增加 ascend950 构建门控,修复默认910b全量UT段错误 Created-by: zhaoxinmeng Commit-by: zhaoxinmeng Merged-by: cann-robot Description: 关联 issue:#2104 ## 问题现象 CI 全量 UT( build.sh -u --cov,默认 soc=ascend910b)在 ToAbsoluteBBoxTiling.tiling_fp32_single_block 直接 Segmentation fault,导致 cv_op_host_ut 二进制整体崩溃。 ## 根因 1. to_absolute_b_box 为 950/350 专属算子(SUPPORT_COMPUTE_UNIT 仅 ascend950/ascend350),tiling 实现位于 op_host/arch35/ 子目录,仅在 --soc=ascend950/ascend350 构建时编译注册; 2. 而 tests/ut/op_host/CMakeLists.txt 未按 soc 门控,**无条件**编译了 tiling 用例(2edae2a3/cf114096 引入); 3. CI 默认 910b 构建下用例运行但 tiling 实现未注册,GetOpImpl("ToAbsoluteBBox") 在 libopp_registry.so 内解引用空指针 → SIGSEGV。 原作者使用 --soc=ascend950 验证(17/17 通过)故未暴露。 ## 修复 与同提交引入的 bounding_box_encode 对齐,增加 ASCEND_COMPUTE_UNIT STREQUAL ascend950 门控(1 文件 +3/-1)。 ## 验证 - 默认 910b 全量 UT:segfault 消失,2646/2646 用例通过 - bash build.sh -u --cov --soc=ascend950 --ops=to_absolute_b_box:17/17 PASSED(13 tiling + 4 infershape) See merge request: cann/ops-cv!2969 | 1 day ago | |
refactor(pypto): tiling 生成头改为显式 include Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !1642 merge pr-1614 into master refactor(pypto): tiling 生成头改为显式 include Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: ## 变更说明 将 PyPTO 算子 tiling 生成头的接入方式从 -include 强制包含改为**显式 include**,并同步收敛 pypto-pro 的 arch 映射与文档。 ## 主要改动 - **cmake/func.cmake** - pypto_force_include_tiling(-include 强制包含)改为 pypto_include_tiling_gen():configure 阶段生成的 tiling/tilingkey 头文件目录经 target_include_directories 注入 tiling 目标 include 路径(CMake 3.16 兼容),*_tiling*.cpp 由源文件显式 include(顺序:tilingkey 在前,tiling 在后)。 - pypto_soc_to_arch 收敛为仅 ascend950 → 3510(pypto-pro 仅支持 dav-3510 arch);环境变量 PYPTO_JIT_ARCH 更名为 PYPTOPRO_JIT_ARCH。 - **scripts/util/pypto_codegen.py**:_ARCH_MAP 同步收敛(仅 ascend950 → 3510),导出 PYPTOPRO_JIT_ARCH。 - **cmake/gen_ops_info.cmake**:prepare_compile_from_config / compile_from_config 两处 arch 注释同步更正(默认为 dav-3510)。 - **examples/add_example_pypto** - op_host/add_example_pypto_tiling.cpp:显式 include 生成的 AddExamplePyptoTilingKey_tilingkey.h / AddExamplePyptoTiling_tiling.h。 - op_host/add_example_pypto_def.cpp:arch 注释更正(pypto-pro 仅支持 dav-3510)。 - README.md / README_en.md:接入方式说明更新为显式 include,新增"运行验证"章节(编译/安装/运行命令与预期输出,中英文对齐)。 - **examples/README.md / README_en.md**:目录树与样例表格补充 add_example_pypto 样例(中英文成对修改)。 ## 验证 - 本地编译通过:bash build.sh --pkg --soc=ascend950 --ops=add_example_pypto -j16(CANN 9.3.0),kernel 二进制 / tiling 库 / proto / 安装包产物齐全。 - ruff、clang-format v18.1.8(与 CI 同版本)、git diff --check 均通过。 ## 关联 Issue 关联 issue: #2100(需求与设计说明) See merge request: cann/ops-cv!1642 | 1 day ago | |
fix(test): handle nonfinite values in AICPU result comparisons Co-authored-by: Xztxzt<xuzetian1109@163.com> # message auto-generated for no-merge-commit merge: !2597 merge review/ops-cv/f04-fix into master fix(test): handle nonfinite values in AICPU result comparisons Created-by: Xztxzt Commit-by: Xztxzt Merged-by: cann-robot Description: ## 描述 共享 CompareResult 的 FLOAT/DOUBLE/HALF 及复数分量比较,仅在绝对和相对误差均超过容差时失败;NaN 使有序比较为 false,错误保留成功结果。CompareResultAllClose 也会意外接受有限值对无穷 golden。 共享浮点比较加入明确的非有限不匹配判断,覆盖 float/double/half/complex 和 AllClose;AllClose 对精确相等值直接通过以支持同号无穷。新增原生 GTest 文件由现有 utils/*.cpp glob 自动纳入 UT,无新增生产依赖。 ## 关联的Issue Fixes #1769 [Issue #1769](https://gitcode.com/cann/ops-cv/issues/1769) ## 测试 原版在 -O0 和 -O2 各为 4 passed / 5 failed;修复后两种优化级别各 9 passed / 0 failed。直接运行新增仓内原生 GTest,覆盖 NaN、正负无穷、有限/非有限交换、复数实虚分量、同号无穷及有限近似容差控制;没有 SDK stubs。git diff --check 通过。 已在本地运行配置的仓内OAT入口,变更文件通过;该结果不代表全部pre-commit、SDK构建或设备验证。 环境:Linux x86_64;Python 3.10.12;GCC 9.5.0。未安装 CANN SDK/NPU。主机夹具使用 Eigen 3.4.0;Python参考使用 NumPy 1.26.4。GoogleTest 1.14.0。 仓内回归: - tests/ut/op_kernel_aicpu/utils/test_aicpu_compare_result.cpp 使用GoogleTest1.14.0和Eigen3.4.0,直接将 tests/ut/op_kernel_aicpu/utils/aicpu_test_utils.cpp 与 tests/ut/op_kernel_aicpu/utils/test_aicpu_compare_result.cpp 链接gtest_main,按C++17分别以-O0/-O2编译运行。该方式已执行,不需要SDK桩。 验证边界: - 本项完整测试工具与新增 GTest 已用真实 Eigen/GTest 执行;仓库整体 AICPU UT 构建仍缺 CANN SDK 静态库,未运行全部算子测试。 - 这是数值断言工具验证,不代表任何 NPU 算子的精度或上板结果。 - 明确采用 NaN 永不匹配策略;如某算子预期 NaN,应在专门用例中显式判断该语义。 ## 文档更新 无。 ## 类型标签 - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写(Codex) See merge request: cann/ops-cv!2597 | 7 days ago | |
feat: 迁移Yolo系列和TransArgb ONNX插件 Co-authored-by: tianqiguang<tianqiguang@huawei.com> # message auto-generated for no-merge-commit merge: !1122 merge master into master feat: 迁移Yolo系列和TransArgb ONNX插件 Created-by: tianqiguang Commit-by: tianqiguang Merged-by: cann-robot Description: ## 描述 将 Yolo 系列和 TransArgb ONNX 算子插件从内部仓库迁移至开源仓库,新增 7 个 ONNX 插件文件并更新算子注册头文件。 | 序号 | 算子 | 文件名 | 行数 | |------|------|--------|------| | 1 | TransArgb | trans_argb_onnx_plugin.cpp | 43 | | 2 | Yolo | yolo_onnx_plugin.cpp | 69 | | 3 | YoloBoxesEncode | yolo_boxes_encode_onnx_plugin.cpp | 51 | | 4 | YoloPreDetection | yolo_predetection_onnx_plugin.cpp | 75 | | 5 | YoloV3DetectionOutputV2 | yolov3_detection_output_v2_onnx_plugin.cpp | 108 | | 6 | YoloV5DetectionOutput | yolov5_detection_output_onnx_plugin.cpp | 114 | | 7 | YoloXBoundingBoxDecode | yolox_bounding_box_decode_onnx_plugin.cpp | 35 | ### 实现方式 每个插件文件通过 REGISTER_CUSTOM_OP 宏注册算子,实现 ONNX NodeProto 属性到 Ascend GE IR 的映射,注册为 FrameworkType(ONNX) + ImplyType(TVM)。 同时更新 op_cv_proto_extend.h 头文件中的算子注册声明,适配新的插件化架构。 ## 测试 - Yolo 系列 ONNX 模型推理兼容性验证 - TransArgb 颜色空间转换正确性验证 ## 类型标签 - [x] ✨ 新特性 ## 关联的Issue - #620 See merge request: cann/ops-cv!1122 | 4 months ago | |
新增Batch一致性特性介绍 Co-authored-by: ayuemoon<15802951036@163.com> # message auto-generated for no-merge-commit merge: !1617 merge cv-master+920 into master 新增Batch一致性特性介绍 Created-by: ayuemoon Commit-by: ayuemoon Merged-by: cann-robot Description: ## 描述 新增确定性计算与Batch一致性特性介绍,补充基础概念入口和API列表说明;完善README项目徽章并更新ops-cv架构图。 架构图使用Git LFS管理,同时在OAT二进制文件检查配置中放行文档PNG图片,确保图片资源合规检查通过。 同步ops-nn PR 10458的文档修正,优化确定性计算与Batch一致性的配置表述,并修正快速安装文档中Docker镜像示例的Markdown缩进。 ## 关联的Issue 不关联Issue。 ## 测试 无。 ## 文档更新 - 新增 docs/zh/context/determinism_compute.md。 - 新增 docs/zh/context/batch_consistency.md。 - 更新基本概念目录和aclnn API列表说明。 - 更新README徽章及架构图。 - 修正快速安装文档中Docker镜像示例的缩进。 - 增加PNG资源的Git LFS规则和OAT二进制文件过滤配置。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [x] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!1617 | 2 months ago | |
support pre commit function flow. Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !653 merge master_pre_commit into master support pre commit function flow. Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 support pre commit function flow. 添加 pre-commit 钩子,支持 OAT(Open Audit Tool)合规检查流程。 - 新增 pre-commit 配置,集成 OAT 合规检查 - OAT 脚本自动检测并安装 Java 21、Maven - 增量扫描 staged 文件的许可证头和二进制文件 - CRLF 行尾自动修复 - 自动将 oat_reports/ 和 log/ 加入 .gitignore ## 关联的Issue https://gitcode.com/cann/ops-cv/issues/280 ## 测试 pre commit oat check等功能本地执行成功。 ## 文档更新 不涉及文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [x] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!653 | 7 months ago | |
ci(oat): 使用固定版本的 compliance 远程检查 hook Co-authored-by: liyinlong<2453195@tongji.edu.cn> # message auto-generated for no-merge-commit merge: !2438 merge ci/compliance-oat-hook-20261108 into master ci(oat): 使用固定版本的 compliance 远程检查 hook Created-by: lilong555 Commit-by: liyinlong Merged-by: cann-robot Description: ## 描述 OAT 合规检查通过 HiAgent/compliance 的 v1.0.6 远程 Python hook 执行,由 pre-commit 管理检查环境和依赖。配置沿用 types: [file]、scripts/package/ 下 XML 排除规则、文件参数传递和执行阶段,符合 Issue #1435 中确认的接入方案。 相关 PR !1918 改善本地脚本的参数处理,本次改动集中在 .pre-commit-config.yaml,两项变更可独立合入。 ## 关联的Issue Fixes #1435 ## 测试 - 配置 schema、git diff --check 及变更文件的 pre-commit 检查通过。 - 固定 v1.0.6 的真实远程 hook 完成 10 项集成验证:合规源码通过,缺许可证头源码返回失败;带空格文件名正常检查;打包 XML 与全局排除规则生效,目录外 XML 继续检查;同一 HEAD 下修复许可证头后重试通过。 - 核对其他 hook、全局选项与 OAT 文件筛选设置一致。 - [社区 CI #3336](https://gitcode.com/cann/ops-cv/actions/runs/906c5f6f77944c09932db601df0a8457) 全部 67 项检查通过,包含新远程 hook 的实际安装与执行、编译、单元测试和冒烟测试;CLA 校验通过。 ## 类型标签 - [x] 📦 构建/CI - [x] 🔧 配置变更 ### 当前PR是否有AI参与 - [ ] 否 - [x] 是 1. Agent平台信息:OpenAI Codex,codex-cli 0.167.0。 2. 模型信息:gpt-6-astra。 3. Prompt摘要:依据 Issue #1435 与维护者意见,将 OAT 接入迁移至固定版本的 compliance 远程 Python hook,保留文件筛选规则,并验证实际合规检查、文件名和重试行为。 See merge request: cann/ops-cv!2438 | 1 day ago | |
modified md files (modified the product name and link path) Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !1749 merge master into master modified md files (modified the product name and link path) Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 Changed the product name and link. ## 关联的Issue [#1021](https://gitcode.com/cann/ops-cv/issues/1021) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-cv!1749 | 2 months ago | |
docs: sync English translations with latest master and add missing translations Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !2329 merge docs/sync-english-translations into master docs: sync English translations with latest master and add missing translations Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Synced the English translations with the latest documentation fixes on master and added the missing translations: - Updated 8 translation files that lagged behind the doc fixes merged after the previous translation snapshot (commit-date comparison misses these; a content-level audit against the translation base commit was used): - image/three_interpolate_backward/README_en.md and docs/aclnnThreeInterpolateBackward_en.md: idx range [0, m) constraint and shape-correspondence rules - objdetect/roi_align/docs/aclnnRoiAlign_en.md: example value spatialScale 1.0f -> 0.25f - image/dilation2_d_backprop_input/README_en.md: NCHW output shape and format-constraint rewrite - image/img_raw_decode_post_handle/README_en.md: non-contiguous tensors are now auto-converted (semantic reversal) - image/resize_nearest_neighbor_v2_grad/README_en.md: graph-mode row with sample link and dtype-follow note - image/rgb2_yuv422/README_en.md: numerical behavior note and constraints rewritten (8 items) - image/upsample_nearest3d/README_en.md: GEIR not supported on Ascend 950PR/950DT (A5) (3 spots) - Added missing translations: CHANGELOG_en.md, objdetect/bounding_box_encode/README_en.md, objdetect/to_absolute_b_box/README_en.md ## Related Issue N/A ## Tests Documentation-only change; no code or UT affected. ## Documentation Update Updated and added the English translation files listed above. ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!2329 | 27 days ago | |
工程框架支持兼容arch配置 Co-authored-by: liu-lu<www.liulu824910939@qq.com> # message auto-generated for no-merge-commit merge: !2107 merge master into master 工程框架支持兼容arch配置 Created-by: liu-lu Commit-by: liu-lu Merged-by: cann-robot Description: ## 描述 工程框架支持兼容 arch 配置(对齐 ops-nn MR !11603 的框架能力)。 将原先以 socVersion 为核心的构建匹配机制统一改为基于 npuArch 的匹配,并将 soc→arch 映射收敛到单一来源: - **新增 cmake/soc_arch_variables.cmake**:定义按位置一一对应的 ASCEND_ALL_COMPUTE_UNIT 与 SOC_TO_ARCH_VALUES(暂无 npuArch 的 soc 以空串占位),去重生成 NPU_ARCH_LIST; - **新增 cmake/query.cmake**:脚本模式命令行入口,支持三种用法(缺省按 soc 查 arch / Func get_npu_arch_by_soc_version / Value <变量名>),供 bash 等外部脚本查询,替代多处硬编码; - **cmake/func.cmake**:新增 get_npu_arch_by_soc_version / get_soc_version_by_npu_arch 映射函数;add_all_modules_sources 新增 NPU_ARCH 参数,配置后当前构建芯片转换为 npuArch 统一按 arch 匹配 tiling 目录(同 arch 的 soc 如 ascend950/ascend350 共享匹配结果);旧 COMPUTE_UNIT 参数保持兼容,未配置时行为与原先完全一致; - **CMakeLists.txt**:include soc_arch_variables.cmake,删除硬编码的 ASCEND_ALL_COMPUTE_UNIT 定义; - **scripts/build_conf.sh**:SUPPORT_COMPUTE_UNIT_SHORT 改为经 query.cmake 统一获取; - **scripts/build_example.sh**:get_simulator_chip_version 移除 case 硬编码映射,改查 query.cmake; - **scripts/util/gen_compile_option.sh**:兼容 ascendc_config.json 中按 arch(dav_XXX)或 soc 登记的配置,命中 arch 键时回替为 soc 名再解析。 对外功能不变:存量算子的 COMPUTE_UNIT/TILING_DIR 调用、--soc 参数校验(17 个 soc)、编译流程均保持原行为。 ## 关联的Issue #1427 ## 测试 根据代码变更,测试场景如下: 1. **query.cmake 查询功能验证** - 三种用法逐一验证:cmake -P cmake/query.cmake ascend910b → dav_2201(大小写不敏感);Func get_soc_version_by_npu_arch dav_3510 → ascend350;ascend950;Value ASCEND_ALL_COMPUTE_UNIT 按行输出 17 个 soc - 无 npuArch 的 soc(ascend610lite/ascend630)查询返回空串,不报错 2. **映射一致性回归** - 原 build_example.sh case 映射的 7 个 soc 与新查询结果逐一对照,完全一致 - --soc 参数校验:17 个 soc 全部通过,非法 soc 正确拒绝 3. **tiling 匹配逻辑回归(CMake)** - 未配置 NPU_ARCH 时(存量算子全部走此路径),新旧 COMPUTE_UNIT 匹配结果在 ascend910b/ascend950/ascend350/ascend610lite 等场景逐一对照一致(含未列出 soc 回退默认 tiling 目录) - 配置 NPU_ARCH 时:同 arch 共享匹配(ascend950 与 ascend350 均命中 dav_3510→arch35)、无映射 soc 回退默认、未列出 arch 未命中 4. **gen_compile_option.sh 回归** - 对 ascendc_config.json 全量 148 个 (op, soc) 配置对,新旧 grep 匹配结果零差异 5. **bash 语法检查** - build.sh、build_conf.sh、build_example.sh、gen_compile_option.sh 全部通过 bash -n ## 文档更新 无。cmake/query.cmake、cmake/soc_arch_variables.cmake、cmake/func.cmake 内含中文注释说明用法,无对外文档需要更新。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [x] 📦 构建/CI - [x] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!2107 | 1 month ago | |
docs: CONTRIBUTING新增算子分类与贡献区别章节,补充生态算子覆盖率与用例上库要求 Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !2341 merge docs/contributing-op-classification into master docs: CONTRIBUTING新增算子分类与贡献区别章节,补充生态算子覆盖率与用例上库要求 Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 补充 CONTRIBUTING 中项目标准算子与生态算子的分类说明、贡献区别与转换流程: - **生态算子定位**:面向特定网络与场景定制开发,贡献至 experimental 对应算子分类目录 - **生态最简交付件目录树**:调整为 experimental/${op_class} 前缀,新增 examples 看护目录与定制场景用例说明(本仓 experimental 算子已有 examples 目录,与现实一致) - **交付件要求表新增 3 行**:覆盖率要求(本地 bash build.sh --experimental -u --cov 生成 lcov 报告自查,CI 侧将统计覆盖率)、example 看护要求(本地 bash build.sh --experimental --run_example ${op_name} eager cust 编译执行验证——cust 为自定义算子包模式,验证安装至 opp/vendors/ 的算子包,--vendor_name 默认 custom 须与安装时一致;CI 会触发 examples 验证)、用例上库要求(定制场景用例随代码上库至算子 tests 目录) - **CI 门禁**:UT 测试补充覆盖率统计说明 - **附录新增**:项目标准算子介绍(标准算子 vs 生态算子五维对比表)、生态算子转换为项目标准算子的条件与三步流程(议题评审链接适配为本仓 ops-basic SIG) - **修正**:「PR 上库要求」更名为「项目标准算子 PR 上库要求」,其贡献目录原误写的 experimental/${op_class} 路径修正为算子分类目录 ## 关联的Issue 无 ## 测试 - 检视修正已核实:example 命令补 cust(对照 build_example.sh 标准路径/vendors 路径二分,CI 侧 build_example_for_ci 即强制 cust);目录树 tests 形态对照 experimental 算子实际结构(clahe 等)核实 - 纯文档变更,不涉及代码与构建 - pre-commit 全钩子通过(含 codespell / OAT 合规扫描) - 文内锚点链接核验:「项目标准算子 PR 上库要求」「生态算子转换为项目标准算子」均可跳转 - 引用的本地路径(docs/zh/install/build.md、examples/fast_kernel_launch_example/README.md、docs/CONTRIBUTING_DOCS.md)均存在 ## 文档更新 CONTRIBUTING.md(+43/-12) ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!2341 | 26 days ago | |
docs: add English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !2304 merge docs/add-english-translations into master docs: add English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for repository-level markdown documents to keep the English and Chinese documentation in sync. - Add English translations (README_en.md) for 94 operator READMEs under image/ and objdetect/, plus the root CHANGELOG_en.md, CONTRIBUTING_en.md, README_en.md, SECURITY_en.md, examples READMEs, and .gitcode/PULL_REQUEST_TEMPLATE.en-US.md - Update image/resize_nearest_neighbor_v2/docs/aclnnUpsampleNearest2d_en.md to align with the latest Chinese document (BFLOAT16-only restriction) - All translations follow the repository documentation guidelines: product names, terminology, link rewrites to existing English documents/images, and language switch lines are handled consistently ## Related Issues N/A ## Tests Documentation-only change. No code is modified, so no UT or smoke test is required. Links, anchors, and image references have been manually checked. ## Documentation Updates All changes in this PR are documentation updates (English translations of the Chinese markdown files listed above). ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: See merge request: cann/ops-cv!2304 | 28 days ago | |
init | 1 year ago | |
新增Batch一致性特性介绍 Co-authored-by: ayuemoon<15802951036@163.com> # message auto-generated for no-merge-commit merge: !1617 merge cv-master+920 into master 新增Batch一致性特性介绍 Created-by: ayuemoon Commit-by: ayuemoon Merged-by: cann-robot Description: ## 描述 新增确定性计算与Batch一致性特性介绍,补充基础概念入口和API列表说明;完善README项目徽章并更新ops-cv架构图。 架构图使用Git LFS管理,同时在OAT二进制文件检查配置中放行文档PNG图片,确保图片资源合规检查通过。 同步ops-nn PR 10458的文档修正,优化确定性计算与Batch一致性的配置表述,并修正快速安装文档中Docker镜像示例的Markdown缩进。 ## 关联的Issue 不关联Issue。 ## 测试 无。 ## 文档更新 - 新增 docs/zh/context/determinism_compute.md。 - 新增 docs/zh/context/batch_consistency.md。 - 更新基本概念目录和aclnn API列表说明。 - 更新README徽章及架构图。 - 修正快速安装文档中Docker镜像示例的缩进。 - 增加PNG资源的Git LFS规则和OAT二进制文件过滤配置。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [x] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!1617 | 2 months ago | |
modified md files (modified the product name and link path) Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !1749 merge master into master modified md files (modified the product name and link path) Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 Changed the product name and link. ## 关联的Issue [#1021](https://gitcode.com/cann/ops-cv/issues/1021) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-cv!1749 | 2 months ago | |
docs: add English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !2304 merge docs/add-english-translations into master docs: add English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for repository-level markdown documents to keep the English and Chinese documentation in sync. - Add English translations (README_en.md) for 94 operator READMEs under image/ and objdetect/, plus the root CHANGELOG_en.md, CONTRIBUTING_en.md, README_en.md, SECURITY_en.md, examples READMEs, and .gitcode/PULL_REQUEST_TEMPLATE.en-US.md - Update image/resize_nearest_neighbor_v2/docs/aclnnUpsampleNearest2d_en.md to align with the latest Chinese document (BFLOAT16-only restriction) - All translations follow the repository documentation guidelines: product names, terminology, link rewrites to existing English documents/images, and language switch lines are handled consistently ## Related Issues N/A ## Tests Documentation-only change. No code is modified, so no UT or smoke test is required. Links, anchors, and image references have been manually checked. ## Documentation Updates All changes in this PR are documentation updates (English translations of the Chinese markdown files listed above). ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: See merge request: cann/ops-cv!2304 | 28 days ago | |
[Docs] 修正文档中指向旧平台 gitee.com 的链接 Co-authored-by: aodebiao<18003961989@163.com> # message auto-generated for no-merge-commit merge: !2184 merge docs/fix-stale-platform-link into master [Docs] 修正文档中指向旧平台 gitee.com 的链接 Created-by: gxhgxh2475698 Commit-by: aodebiao Merged-by: cann-robot Description: ## 描述 文档中仍有指向旧平台 gitee.com 的链接,共 3 处: SECURITY.md 2 处指向 gitee.com/ascend/pytorch,docs/zh/develop/aicore_develop_guide.md 1 处指向 gitee.com/ascend/samples。项目源码与社区已迁至 GitCode,旧地址不再是可用入口。本次更新为对应 GitCode 地址,链接文字与其余内容不变。 ## 改动内容 1. SECURITY.md:2 处 gitee.com/ascend/pytorch → gitcode.com/Ascend/pytorch 2. docs/zh/develop/aicore_develop_guide.md:1 处 gitee.com/ascend/samples → gitcode.com/cann/cann-samples 共 2 个文件、2 行变更(仅链接地址替换)。 ## 关联的Issue 修复 #1383([Documentation|文档反馈]: 文档中仍指向旧平台 gitee.com/ascend 的链接(2 个文件)) ## 测试 纯文档改动,不涉及代码,未运行编译与 UT。 验证方式: - 修改前在 SECURITY.md、docs/zh/develop/aicore_develop_guide.md 中检索 gitee.com 命中 3 处,修改后为 0 处; - 仅替换链接地址,链接文字、章节结构与其余内容未变;改动前后断链数一致。 ## 文档更新 - SECURITY.md - docs/zh/develop/aicore_develop_guide.md ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-cv!2184 | 1 month ago | |
docs: add English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !2304 merge docs/add-english-translations into master docs: add English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for repository-level markdown documents to keep the English and Chinese documentation in sync. - Add English translations (README_en.md) for 94 operator READMEs under image/ and objdetect/, plus the root CHANGELOG_en.md, CONTRIBUTING_en.md, README_en.md, SECURITY_en.md, examples READMEs, and .gitcode/PULL_REQUEST_TEMPLATE.en-US.md - Update image/resize_nearest_neighbor_v2/docs/aclnnUpsampleNearest2d_en.md to align with the latest Chinese document (BFLOAT16-only restriction) - All translations follow the repository documentation guidelines: product names, terminology, link rewrites to existing English documents/images, and language switch lines are handled consistently ## Related Issues N/A ## Tests Documentation-only change. No code is modified, so no UT or smoke test is required. Links, anchors, and image references have been manually checked. ## Documentation Updates All changes in this PR are documentation updates (English translations of the Chinese markdown files listed above). ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: See merge request: cann/ops-cv!2304 | 28 days ago | |
修改 makeself version声明与实际使用三方件版本一致 Co-authored-by: liukejin<liukejin@huawei.com> # message auto-generated for no-merge-commit merge: !408 merge tp_version into master 修改 makeself version声明与实际使用三方件版本一致 Created-by: liukejin Commit-by: liukejin Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 修改 makeself version声明 修改点:版本号声明与使用版本号一致,增加补丁版本说明 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> 关联Issue [#133](https://gitcode.com/cann/ops-cv/issues/133) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 开源三方件引用声明,不需要测试,流水线通过即可 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!408 | 8 months ago | |
add_example_aicpu修改 Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !727 merge bubgix0415 into master add_example_aicpu修改 Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本PR的具体修改内容如下: 1、修复add_example_aicpu的ut 2、ut说明中添加aicpu的kernel执行 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> issue [#321](https://gitcode.com/cann/ops-cv/issues/321) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> [2026-04-15 13:48:06] Run ops opkernel_aicpu utest [2026-04-15 13:48:06] [==========] Running 1 test from 1 test suite. [2026-04-15 13:48:06] [----------] Global test environment set-up. [2026-04-15 13:48:06] [----------] 1 test from TEST_AddExample_UT [2026-04-15 13:48:06] [ RUN ] TEST_AddExample_UT.INT32_VECTOR_ADD_SUCC [2026-04-15 13:48:06] [ OK ] TEST_AddExample_UT.INT32_VECTOR_ADD_SUCC (0 ms) [2026-04-15 13:48:06] [----------] 1 test from TEST_AddExample_UT (0 ms total) [2026-04-15 13:48:06] [2026-04-15 13:48:06] [----------] Global test environment tear-down [2026-04-15 13:48:06] [==========] 1 test from 1 test suite ran. (0 ms total) [2026-04-15 13:48:06] [ PASSED ] 1 test. [2026-04-15 13:48:06] [100%] Built target cv_aicpu_op_kernel_ut ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了docs/zh/install/compile.md ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!727 | 7 months ago | |
CANN开发者共建计划-fix: 无参数执行 build.sh 时打印帮助后退出 Co-authored-by: jingkai-2026<2450453975@qq.com> # message auto-generated for no-merge-commit merge: !2439 merge fix/build-sh-usage-exit-20261108 into master CANN开发者共建计划-fix: 无参数执行 build.sh 时打印帮助后退出 Created-by: jingkai-2026 Commit-by: jingkai-2026 Merged-by: cann-robot Description: ## 1、变更概述 在 build.sh 无参数分支的 usage 后补 exit 0,避免打印帮助后继续执行构建流程。 关联 Issue:#1590 ## 2、变更类型 - [x] Bug 修复 ## 3、修改内容 | 文件 | 改动说明 | |---|---| | build.sh | 第 62-64 行 if [ $# -eq 0 ] 分支内补 exit 0 | 1 个文件、1 行改动。 ## 4、自测验证 - bash build.sh 打印帮助后以 0 退出,不再进入 main - bash build.sh --help 行为不变 - 与 ops-math/build.sh:66-69 写法一致 ## 5、合规检查 - [x] 已签署 Ascend CLA - [x] 符合仓库编码规范 ## 6、评审重点 & 备注 只补一个退出语句,不改构建逻辑。 See merge request: cann/ops-cv!2439 | 17 days ago | |
fix: objdetect cleanCode 屏蔽路径显式化及 zero-fill helper const 化 Co-authored-by: sunhao_hw<sunhao203@huawei.com> # message auto-generated for no-merge-commit merge: !2475 merge chore/cleancode-classify-const-params into master fix: objdetect cleanCode 屏蔽路径显式化及 zero-fill helper const 化 Created-by: sunhao_hw Commit-by: sunhao_hw Merged-by: cann-robot Description: ## 描述 1. **classify_rule.yaml(objdetect@ops-cv)**: */examples、*/tests 通配对 cleanCode 不生效,改为按算子字母序显式罗列仓库内实际存在的 examples/、tests/ 目录;并补充 rotated_box_encode/op_graph/ 以覆盖扫描命中文件。 2. **const 形参**:aclnn_three_interpolate_backward.cpp、aclnn_roi_pooling_with_arg_max.cpp 中 GetOutTensorWithValueZero 输入改为 const aclTensor*,与同仓已整改写法一致。 ## 关联的Issue 关联Issue #1620(Close #1620) https://gitcode.com/cann/ops-cv/issues/1620 ## 测试 1. clang-format 18.1.8 与 pre-commit run --files(含 OAT)通过。 2. bash build.sh -u --opapi --ops=roi_pooling_with_arg_max,three_interpolate_backward:45/45 PASSED(three_interpolate_backward_test 19 + l2_roi_pooling_with_arg_max_test 26)。 3. 核对 objdetect 下 examples/tests 路径均真实存在;最新评论中的路径均可被 test_code 前缀覆盖。 ## 文档更新 无 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [x] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [x] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!2475 | 15 days ago | |
fix(deps): 修复交互依赖跳过后的成功提示 Co-authored-by: hid29204727<wangboyu20@huawei.com> # message auto-generated for no-merge-commit merge: !1923 merge fix/issue-1165-install-deps-summary into master fix(deps): 修复交互依赖跳过后的成功提示 Created-by: hid29204727 Commit-by: hid29204727 Merged-by: cann-robot Description: ## 描述 修复 install_deps.sh 中依赖安装交互提示与最终汇总不一致的问题。 - 将 pigz 和 googletest 的提示从 [Y/n] 改为 [y/N]。 - 空输入和 n/N 默认跳过,仅 y/Y 执行安装。 - 对不支持的输入重新询问。 - 记录被跳过的依赖,并在最终汇总中明确列出。 - 仅在没有依赖被跳过时打印 All dependencies installed successfully!。 ## 关联的Issue https://gitcode.com/cann/ops-cv/issues/1165 ## 测试 在 Linux 隔离环境中完成验证,未执行真实的软件包安装命令: - 空输入:pigz 和 googletest 均跳过,并在最终汇总中列出。 - y/Y:两项安装路径均执行,并输出全部依赖安装成功。 - n/N:两项依赖均跳过,并在最终汇总中列出。 - 非法输入:提示重新输入,直到输入有效选项。 - git diff --check 通过。 ## 文档更新 不涉及文档更新。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-cv!1923 | 1 month ago | |
【描 述】 前置依赖资料修改&&build.sh --help提示&&requirement.txt明确依赖版本 Co-authored-by: j00427146<jialimin1@huawei.com> # message auto-generated for no-merge-commit merge: !774 merge cv_markdown into master 【描 述】 前置依赖资料修改&&build.sh --help提示&&requirement.txt明确依赖版本 Created-by: jialimin1 Commit-by: j00427146 Merged-by: cann-robot Description: ## 描述 1、手动安装,最小化环境依赖不清晰 资料调整 2、SOC 参数错误应更新 build.sh 支持列表并完善文档说明 3、requirement.txt Python 依赖冲突应显式声明版本约束与缺失依赖 4、修改QUICKSTART.md/quick_install.md中关于WebIDE的错误路径; 5、补充AddExample编译中--soc支持参数的说明; 6、更新AddExample编译成功后返回的提示信息。 ## 关联的Issue Issue #332 <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!774 | 7 months ago | |
chore: 更新 ops-cv 版本号至 9.2.0 Co-authored-by: hid29204727<wangboyu20@huawei.com> # message auto-generated for no-merge-commit merge: !1437 merge codex/version-9.20 into master chore: 更新 ops-cv 版本号至 9.2.0 Created-by: hid29204727 Commit-by: hid29204727 Merged-by: cann-robot Description: ## 描述 将 ops-cv 软件包版本号从 9.1.0 更新为 9.2.0,保持现有 set_cann_package 配置风格不变。 ## 关联的Issue 无。 ## 测试 - 已执行 git diff --check,检查通过。 - 本次仅修改版本元数据,未执行编译或运行时测试。 ## 文档更新 无。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [x] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!1437 | 2 months ago |
🔥Latest News
- [2026/01] Added QuickStart, which guides beginners to get started with operator project deployment (Docker environments supported), operator development, and the contribution process from zero.
- [2025/12] Open-source operators support Ascend 950PR&950DT products and Kirin X90 processor series products. You can develop and debug operators using the NPU Simulator simulation tool. Guide documents were optimized to focus on the Operator Development Guide, clarify the minimum deliverables and key example code, and provide guidance for migrating operators in the Ascend/samples repository to this project. Plugin support for ONNX operators was added.
- [2025/11] The three_interpolate_backward operator adds the deterministic computation feature. opgen was added to support automatic generation of operator projects.
- [2025/10] The experimental directory was added, and the Contribution Guide was improved. Developers can debug and contribute custom operators.
- [2025/09] The ops-cv project was released for the first time. Open-source operators support Atlas A2 products and Atlas A3 products.
🚀Overview
ops-cv is a high-level operator library in the CANN (Compute Architecture for Neural Networks) operator library. It provides image processing, object detection, and other capabilities. It includes image and objdetect operators and covers common image processing operations. The position of the sub-library in the architecture is shown below.

📌Version Compatibility
The source code of this project is released with CANN software versions. For the mapping between CANN software versions and the tags of this project, refer to the corresponding version description in the release repository. Note that to ensure smooth custom development based on the source code, select the compatible CANN version and the Gitcode tag source code. Using the master branch may cause version mismatch risks.
🛠️Environment Preparation
Environment deployment is the prerequisite for experiencing the capabilities of this project. Complete the installation of the NPU driver, CANN package, and so on first to ensure that the environment is normal.
⬇️Source Code Download
After the environment is ready, download the source code of the branch compatible with the CANN version. The command is as follows. Replace ${tag_version} with the branch tag name.
Note: If the source code of the compatible branch already exists in the environment, you can skip this step. For example, CANNLab provides the source code corresponding to the latest CANN version by default.
# General command: git clone -b ${tag_version} https://gitcode.com/cann/ops-cv.git
git clone -b ${tag_version} https://gitcode.com/cann/ops-cv.git
📖Tutorials
- Quick Start: Quickly experience the core basic capabilities of the project from zero, covering source code compilation, operator invocation, development, and debugging.
- Advanced Tutorials: For more information about project compilation and deployment, operator invocation, development, debugging, and tuning, refer to the documentation center for detailed guidance.
💬Related Information
PS: The features and documentation of this project are continuously updated and improved. Stay tuned for the latest version.
- Issue feedback: Submit issues through GitCode Issues.
- Community interaction: Join discussions through GitCode Discussions.
- Technical column: Get technical articles through GitCode Wiki.