256 Star 932 Fork 110

MindSpore / mindarmour

 / 详情

The demo code can not process grayscale image, pls check

DONE
Bug-Report
创建于  
2022-03-31 15:45
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g.,r1.6 commit_id=xxxx) :r1.7 commit_id = ''[sha1]:26585b36,[branch]:(HEAD->master,origin/master,origin/HEAD)''
    -- Python version (e.g., Python 3.7.5) : Python 3.7.5
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

ocr_evaluate教程

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

Describe the expected behavior / 预期结果 (Mandatory / 必填)

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

数据集中存在灰度图片,demo代码处理报错,代码的容错性需要提升。
ValueError: {'error': "Call Function 'perturbation.perturb' Failed, method: 'natural_perturbation', stage index(begin with 1): 1, error msg: OpenCV(3.4.9) /cache/opencv-python-31/opencv/modules/imgproc/src/color.sim...olicy)2; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'\n> Invalid number of channels in input image:\n> 'VScn::contains(scn)'\n> where\n> 'scn' is 1\n"}

Special notes for this issue/备注 (Optional / 选填)

评论 (1)

gxiang27 创建了Bug-Report
gxiang27 添加了
 
v1.7.0
标签
gxiang27 添加了device/ascend(已删除)标签
ZhidanLiu 关联仓库设置为MindSpore/mindarmour
ZhidanLiu 通过mindspore/mindarmour Pull Request !345任务状态TODO 修改为DONE
ZhidanLiu 任务状态DONE 修改为WIP
ZhidanLiu 任务状态WIP 修改为VALIDATION
ZhidanLiu 添加协作者ZhidanLiu
ZhidanLiu 负责人ZhidanLiu 修改为gxiang27
ZhidanLiu 里程碑B-SIG-Security 修改为B-SolutionTest
展开全部操作日志

回归版本:2022-04-12 commit_id = ''[sha1]:87798b79,[branch]:(HEAD->master,origin/master,origin/HEAD)''
编译时间 2022-04-12 01:49
回归步骤:执行教程步骤
基本功能:问题已解决
输入图片说明
测试结论:回归通过
回归人员:gaoxiang
回归时间: 2022-04-16

gxiang27 任务状态VALIDATION 修改为DONE
gxiang27 移除了device/ascend(已删除)标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
Python
1
https://gitee.com/mindspore/mindarmour.git
git@gitee.com:mindspore/mindarmour.git
mindspore
mindarmour
mindarmour

搜索帮助