首页
开源
资讯
活动
开源许可证
软件工程云服务
软件代码质量检测云服务
持续集成与部署云服务
社区个性化内容推荐服务
贡献审阅人推荐服务
群体化学习服务
重睛鸟代码扫描工具
登录
注册
代码拉取完成,页面将自动刷新
Watch
3
Star
15
Fork
6
MindSpore Lab
/
mindyolo
Fork 仓库
加载中
取消
确认
代码
Issues
27
Pull Requests
1
Wiki
0
统计
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
自定义数据集训练时出现错误
待办的
#I87OF0
ficaros
创建于
2023-10-12 18:20
我在使用自定义的数据集进行训练的时候出现了以下错误: ``` The function call stack (See file '/root/mindyolo/rank_0/om/analyze_fail.ir' for more details. Get instructions about `analyze_fail.ir` at https://www.mindspore.cn/search?inputValue=analyze_fail.ir): # 0 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:77 return train_step_func(*args) ^ # 1 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:59 if clip_grad: # 2 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:54 (loss, loss_items), grads = grad_fn(x, label) ^ # 3 In file /root/miniconda3/lib/python3.8/site-packages/mindspore/ops/composite/base.py:584 return grad_(fn, weights)(*args) ^ # 4 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 5 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 6 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 7 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 8 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 9 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 10 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 11 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 12 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:133 loss_item = ops.stop_gradient(ops.stack((loss, lbox, lobj, lcls))) ^ # 13 In file /root/miniconda3/lib/python3.8/site-packages/mindspore/ops/function/array_func.py:2207 return _stack(tensors) ^ Traceback (most recent call last): File "/root/mindyolo/train.py", line 321, in <module> train(args) File "/root/mindyolo/train.py", line 276, in train trainer.train( File "/root/mindyolo/mindyolo/utils/trainer_factory.py", line 170, in train run_context.loss, run_context.lr = self.train_step(imgs, labels, segments, File "/root/mindyolo/mindyolo/utils/trainer_factory.py", line 366, in train_step loss, loss_item, _, grads_finite = self.train_step_fn(imgs, labels, True) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 807, in staging_specialize out = _MindsporeFunctionExecutor(func, hash_obj, input_signature, process_obj, jit_config)(*args, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 106, in wrapper results = fn(*arg, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 526, in __call__ raise err File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 523, in __call__ phase = self.compile(self.fn.__name__, *args_list, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 599, in compile is_compile = self._graph_executor.compile(self.fn, compile_args, kwargs, phase, True) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/ops/operations/array_ops.py", line 3108, in __infer__ all_shape = _get_stack_shape(value, x_shape, x_type, self.axis, self.name) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/ops/operations/array_ops.py", line 3002, in _get_stack_shape raise TypeError("For \'{}\', all types should be same, but got {}".format(prim_name, x_type)) TypeError: For 'Stack', all types should be same, but got (mindspore.tensor[float32], mindspore.tensor[float32], mindspore.tensor[float32], mindspore.float32) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/root/miniconda3/lib/python3.8/multiprocessing/util.py", line 357, in _exit_function p.join() File "/root/miniconda3/lib/python3.8/multiprocessing/process.py", line 146, in join self._check_closed() File "/root/miniconda3/lib/python3.8/multiprocessing/process.py", line 101, in _check_closed raise ValueError("process object is closed") ValueError: process object is closed ```
我在使用自定义的数据集进行训练的时候出现了以下错误: ``` The function call stack (See file '/root/mindyolo/rank_0/om/analyze_fail.ir' for more details. Get instructions about `analyze_fail.ir` at https://www.mindspore.cn/search?inputValue=analyze_fail.ir): # 0 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:77 return train_step_func(*args) ^ # 1 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:59 if clip_grad: # 2 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:54 (loss, loss_items), grads = grad_fn(x, label) ^ # 3 In file /root/miniconda3/lib/python3.8/site-packages/mindspore/ops/composite/base.py:584 return grad_(fn, weights)(*args) ^ # 4 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 5 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 6 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 7 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 8 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 9 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 10 In file /root/mindyolo/mindyolo/utils/train_step_factory.py:47 loss, loss_items = loss_fn(pred, label, x) ^ # 11 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:88 for layer_index, pi in enumerate(p): # layer index, layer predictions ^ # 12 In file /root/mindyolo/mindyolo/models/losses/yolov5_loss.py:133 loss_item = ops.stop_gradient(ops.stack((loss, lbox, lobj, lcls))) ^ # 13 In file /root/miniconda3/lib/python3.8/site-packages/mindspore/ops/function/array_func.py:2207 return _stack(tensors) ^ Traceback (most recent call last): File "/root/mindyolo/train.py", line 321, in <module> train(args) File "/root/mindyolo/train.py", line 276, in train trainer.train( File "/root/mindyolo/mindyolo/utils/trainer_factory.py", line 170, in train run_context.loss, run_context.lr = self.train_step(imgs, labels, segments, File "/root/mindyolo/mindyolo/utils/trainer_factory.py", line 366, in train_step loss, loss_item, _, grads_finite = self.train_step_fn(imgs, labels, True) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 807, in staging_specialize out = _MindsporeFunctionExecutor(func, hash_obj, input_signature, process_obj, jit_config)(*args, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 106, in wrapper results = fn(*arg, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 526, in __call__ raise err File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 523, in __call__ phase = self.compile(self.fn.__name__, *args_list, **kwargs) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/common/api.py", line 599, in compile is_compile = self._graph_executor.compile(self.fn, compile_args, kwargs, phase, True) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/ops/operations/array_ops.py", line 3108, in __infer__ all_shape = _get_stack_shape(value, x_shape, x_type, self.axis, self.name) File "/root/miniconda3/lib/python3.8/site-packages/mindspore/ops/operations/array_ops.py", line 3002, in _get_stack_shape raise TypeError("For \'{}\', all types should be same, but got {}".format(prim_name, x_type)) TypeError: For 'Stack', all types should be same, but got (mindspore.tensor[float32], mindspore.tensor[float32], mindspore.tensor[float32], mindspore.float32) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/root/miniconda3/lib/python3.8/multiprocessing/util.py", line 357, in _exit_function p.join() File "/root/miniconda3/lib/python3.8/multiprocessing/process.py", line 146, in join self._check_closed() File "/root/miniconda3/lib/python3.8/multiprocessing/process.py", line 101, in _check_closed raise ValueError("process object is closed") ValueError: process object is closed ```
评论 (
0
)
ficaros
创建了
任务
登录
后才可以发表评论
状态
待办的
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (6)
标签 (4)
master
gh-pages
v0.4.0
v0.3.0
v0.2.0
v0.1.0
v0.3
v0.2
v0.1
v0.0.1-alpha
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)