MindSpore NLP 的 Segment Anything Model(SAM)通用图像分割推理任务在windows下CPU推理结果不正确
bug
**Describe the bug/ 问题描述 (Mandatory / 必填)**
[A clear and concise description of what the bug is.]
按照教程
https://github.com/mindspore-lab/applications/blob/r2.7/cv/sam/inference_sam_segmentation.ipynb
在windows环境下推理结果不正确,在linux下正常。
windows CPU推理过程参考:
https://discuss.mindspore.cn/t/topic/1487
linux CPU推理过程参考:
https://discuss.mindspore.cn/t/topic/1489
- **Hardware Environment(`Ascend`/`GPU`/`CPU`) / 硬件环境**:
> Please delete the backend not involved / 请删除不涉及的后端:
device CPU
- **Software Environment / 软件环境 (Mandatory / 必填)**:
-- MindSpore version (e.g., 1.7.0.Bxxx) :2.7.0
-- Python version (e.g., Python 3.7.5) :3.11
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):win11
-- GCC/Compiler version (if compiled from source):
mindnlp 0.5.1
diffusers 0.35.2
transformers 4.55.0
**To Reproduce / 重现步骤 (Mandatory / 必填)**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior / 预期结果 (Mandatory / 必填)**
A clear and concise description of what you expected to happen.
**Screenshots/ 日志 / 截图 (Mandatory / 必填)**
If applicable, add screenshots to help explain your problem.
**Additional context / 备注 (Optional / 选填)**
Add any other context about the problem here.
3 条评论