登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
大模型
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
109
Star
894
Fork
1.4K
MindSpore
/
models
代码
Issues
120
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
[Question]: yolov5 模型modelarts单卡训练报错。
DONE
#IAJ8MG
slainy
创建于
2024-08-11 22:30
### 请描述您的问题? / Please describe your question 模型代码链接是:https://gitee.com/mindspore/models/tree/r2.1/official/cv/YOLOv5 错误类型:TypeError: 'numpy.float64' object cannot be interpreted as an integer 日志: 2024-08-13 12:27:28,081:INFO:epoch[99], iter[21], loss:23.996906, fps:73.92 imgs/sec, lr:0.0008750000270083547, per step time: 432.92927503585815ms 2024-08-13 12:28:13,951:INFO:Load parameters of train network [WARNING] ME(459:281473495900176,MainProcess):2024-08-13-12:28:14.453.429 [mindspore/train/serialization.py:1262] For 'load_param_into_net', remove parameter prefix name: network.yolo_network., continue to load. 2024-08-13 12:28:14,470:INFO:Load train network success [WARNING] MD(459,fffc89a7e1e0,python):2024-08-13-12:29:02.389.844 [mindspore/ccsrc/minddata/dataset/engine/datasetops/source/generator_op.cc:224] operator()] Bad performance attention, it takes more than 25 seconds to generator.__next__ new row, which might cause `GetNext` timeout problem when sink_mode=True. You can increase the parameter num_parallel_workers in GeneratorDataset / optimize the efficiency of obtaining samples in the user-defined generator function. 2024-08-13 12:29:04,732:INFO:Processing... 0.00% 2024-08-13 12:30:12,682:INFO:Processing... 80.65% 2024-08-13 12:30:21,889:INFO:Calculating mAP... 2024-08-13 12:31:55,980:INFO:Save bbox prediction result. 2024-08-13 12:32:15,937:INFO:Result file path: ./output/predict_2024_08_13_12_31_55.json Loading and preparing results... DONE (t=14.27s) creating index... index created! Traceback (most recent call last): File "/home/ma-user/modelarts/user-job-dir/YOLOv5/train.py", line 213, in <module> run_train() File "/home/ma-user/modelarts/user-job-dir/YOLOv5/model_utils/moxing_adapter.py", line 164, in wrapped_func run_func(*args, **kwargs) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/train.py", line 198, in run_train eval_result, mAP = eval_wrapper.get_results(cur_epoch=epoch_idx + 1, cur_step=steps_per_epoch) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 499, in get_results return self.engine.get_eval_result() File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 391, in get_eval_result eval_results = self.coco_evaluator.get_mAP(self.file_path) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 185, in get_mAP return self.get_mAP_single_file(coco_dt_ann_file) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 236, in get_mAP_single_file return self.compute_coco_mAP(coco_dt) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 239, in compute_coco_mAP coco_eval = COCOeval(self.coco_gt, coco_dt, 'bbox') File "/home/ma-user/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 76, in __init__ self.params = Params(iouType=iouType) # parameters File "/home/ma-user/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 527, in __init__ self.setDetParams() File "/home/ma-user/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 507, in setDetParams self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True) File "<__array_function__ internals>", line 6, in linspace File "/home/ma-user/anaconda/lib/python3.7/site-packages/numpy/core/function_base.py", line 120, in linspace num = operator.index(num) TypeError: 'numpy.float64' object cannot be interpreted as an integer [ModelArts Service Log]2024-08-13 12:32:57,452 - ERROR - proc-rank-0-device-0 (pid: 459) has exited with non-zero code: 1 请问我应该怎么修改呢?
### 请描述您的问题? / Please describe your question 模型代码链接是:https://gitee.com/mindspore/models/tree/r2.1/official/cv/YOLOv5 错误类型:TypeError: 'numpy.float64' object cannot be interpreted as an integer 日志: 2024-08-13 12:27:28,081:INFO:epoch[99], iter[21], loss:23.996906, fps:73.92 imgs/sec, lr:0.0008750000270083547, per step time: 432.92927503585815ms 2024-08-13 12:28:13,951:INFO:Load parameters of train network [WARNING] ME(459:281473495900176,MainProcess):2024-08-13-12:28:14.453.429 [mindspore/train/serialization.py:1262] For 'load_param_into_net', remove parameter prefix name: network.yolo_network., continue to load. 2024-08-13 12:28:14,470:INFO:Load train network success [WARNING] MD(459,fffc89a7e1e0,python):2024-08-13-12:29:02.389.844 [mindspore/ccsrc/minddata/dataset/engine/datasetops/source/generator_op.cc:224] operator()] Bad performance attention, it takes more than 25 seconds to generator.__next__ new row, which might cause `GetNext` timeout problem when sink_mode=True. You can increase the parameter num_parallel_workers in GeneratorDataset / optimize the efficiency of obtaining samples in the user-defined generator function. 2024-08-13 12:29:04,732:INFO:Processing... 0.00% 2024-08-13 12:30:12,682:INFO:Processing... 80.65% 2024-08-13 12:30:21,889:INFO:Calculating mAP... 2024-08-13 12:31:55,980:INFO:Save bbox prediction result. 2024-08-13 12:32:15,937:INFO:Result file path: ./output/predict_2024_08_13_12_31_55.json Loading and preparing results... DONE (t=14.27s) creating index... index created! Traceback (most recent call last): File "/home/ma-user/modelarts/user-job-dir/YOLOv5/train.py", line 213, in <module> run_train() File "/home/ma-user/modelarts/user-job-dir/YOLOv5/model_utils/moxing_adapter.py", line 164, in wrapped_func run_func(*args, **kwargs) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/train.py", line 198, in run_train eval_result, mAP = eval_wrapper.get_results(cur_epoch=epoch_idx + 1, cur_step=steps_per_epoch) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 499, in get_results return self.engine.get_eval_result() File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 391, in get_eval_result eval_results = self.coco_evaluator.get_mAP(self.file_path) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 185, in get_mAP return self.get_mAP_single_file(coco_dt_ann_file) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 236, in get_mAP_single_file return self.compute_coco_mAP(coco_dt) File "/home/ma-user/modelarts/user-job-dir/YOLOv5/src/util.py", line 239, in compute_coco_mAP coco_eval = COCOeval(self.coco_gt, coco_dt, 'bbox') File "/home/ma-user/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 76, in __init__ self.params = Params(iouType=iouType) # parameters File "/home/ma-user/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 527, in __init__ self.setDetParams() File "/home/ma-user/anaconda/lib/python3.7/site-packages/pycocotools/cocoeval.py", line 507, in setDetParams self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True) File "<__array_function__ internals>", line 6, in linspace File "/home/ma-user/anaconda/lib/python3.7/site-packages/numpy/core/function_base.py", line 120, in linspace num = operator.index(num) TypeError: 'numpy.float64' object cannot be interpreted as an integer [ModelArts Service Log]2024-08-13 12:32:57,452 - ERROR - proc-rank-0-device-0 (pid: 459) has exited with non-zero code: 1 请问我应该怎么修改呢?
评论 (
12
)
登录
后才可以发表评论
状态
DONE
TODO
ACCEPTED
WIP
VALIDATION
DONE
CLOSED
REJECTED
负责人
未设置
吴逸群
yiqun-wu
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(4)
1
https://gitee.com/mindspore/models.git
git@gitee.com:mindspore/models.git
mindspore
models
models
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册