登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
大模型
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
107
Star
887
Fork
1.4K
MindSpore
/
models
代码
Issues
127
Pull Requests
1
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
Unet3d使用LUNA16数据无法训练成功
DONE
#I78U29
Bug-Report
AmazingU
创建于
2023-05-27 17:09
环境信息:CANN6.3.RC3 python3.9.2 Euler2.8 代码:https://gitee.com/mindspore/models/tree/master/official/cv/Unet3d 测试过程: 数据集LUNA16 解压数据集: root@f8482f2c30ce:/data/data# 7za e subset9.zip 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,192 CPUs LE) Scanning the drive for archives: 1 file, 6699650017 bytes (6390 MiB) Extracting archive: subset9.zip ERRORS: Headers Error -- Path = subset9.zip Type = zip ERRORS: Headers Error Physical Size = 6699650017 64-bit = + Archives with Errors: 1 Open Errors: 1 转换脚本: python ./src/convert_nifti.py --data_path=/data/data/list/ --output_path=.//data/data/LUNA16/train/image 数据集目录:   执行训练: bash run_distribute_train.sh /home/wukong/hccl_8p_01234567.json /data/data/LUNA16/train log: home/wukong/hccl_8p_01234567.json /data/data/LUNA16/train/ start training for rank 0, device 0 start training for rank 1, device 1 start training for rank 2, device 2 start training for rank 3, device 3 start training for rank 4, device 4 start training for rank 5, device 5 start training for rank 6, device 6 start training for rank 7, device 7 [root@bms-306f scripts]# tail -f train_parallel0/log.txt {'enable_modelarts': 'Whether training on modelarts, default: False', 'enable_fp16_gpu': 'Whether training on gpu with fp16, default: False', 'data_url': 'Dataset url for obs', 'train_url': 'Training output url for obs', 'checkpoint_url': 'The location of checkpoint for obs', 'data_path': 'Dataset path for local', 'output_path': 'Training output path for local', 'load_path': 'The location of checkpoint for obs', 'device_target': 'Target device type, available: [Ascend, GPU, CPU]', 'enable_profiling': 'Whether enable profiling while training, default: False', 'num_classes': 'Class for dataset', 'batch_size': 'Batch size for training and evaluation', 'epoch_size': 'Total training epochs.', 'keep_checkpoint_max': 'keep the last keep_checkpoint_max checkpoint', 'checkpoint_path': 'The location of the checkpoint file.', 'checkpoint_file_path': 'The location of the checkpoint file.'} {'batch_size': 1, 'checkpoint_file_path': 'Unet3d-10-110.ckpt', 'checkpoint_path': './checkpoint/', 'checkpoint_url': '', 'ckpt_file': './checkpoint/Unet3d-10-110.ckpt', 'config_path': '/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/src/model_utils/../../default_config.yaml', 'data_path': '/data/data/LUNA16/train/', 'data_url': '', 'device_id': 0, 'device_target': 'Ascend', 'enable_fp16_gpu': False, 'enable_modelarts': False, 'enable_profiling': False, 'epoch_size': 10, 'file_format': 'MINDIR', 'file_name': 'unet3d', 'in_channels': 1, 'keep_checkpoint_max': 1, 'load_path': '/cache/checkpoint_path/', 'loss_scale': 256.0, 'lower_limit': 3, 'lr': 0.0005, 'max_val': 1000, 'min_val': -500, 'num_classes': 4, 'output_path': './output', 'overlap': 0.25, 'post_result_path': './result_Files', 'pre_result_path': './preprocess_Result', 'roi_size': [224, 224, 96], 'run_distribute': True, 'train_url': '', 'upper_limit': 5, 'warmup_ratio': 0.3, 'warmup_step': 120} Please check the above information for the configurations [WARNING] HCCL_ADPT(129357,ffff95a6d010,python):2023-05-27-17:07:41.340.275 [mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/hccl_adapter.cc:47] GenHcclOptions] The environment variable DEPLOY_MODE is not set. Now set to default value 0 [WARNING] ME(129357:281473192480784,MainProcess):2023-05-27-17:07:41.568.165 [mindspore/dataset/engine/datasets_user_defined.py:805] GeneratorDataset's num_parallel_workers: 4 is too large which may cause a lot of memory occupation (>85%) or out of memory(OOM) during multiprocessing. Therefore, it is recommended to reduce num_parallel_workers to 1 or smaller. [ERROR] MD(129357,ffff95a6d010,python):2023-05-27-17:07:41.967.817 [mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/generator_node.cc:113] ValidateParams] GeneratorNode: data row of input source must not be 0, got: 0 Traceback (most recent call last): File "/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/train.py", line 96, in <module> train_net(data_path=config.data_path, File "/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/src/model_utils/moxing_adapter.py", line 104, in wrapped_func run_func(*args, **kwargs) File "/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/train.py", line 63, in train_net train_data_size = train_dataset.get_dataset_size() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 1673, in get_dataset_size runtime_getter = self.__init_size_getter() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 1562, in __init_size_getter ir_tree, api_tree = self.create_ir_tree() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 398, in create_ir_tree ir_tree = dataset.parse_tree() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 412, in parse_tree ir_children = [d.parse_tree() for d in self.children] File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 412, in <listcomp> ir_children = [d.parse_tree() for d in self.children] File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 416, in parse_tree ir_node = self.parse(ir_children) File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets_user_defined.py", line 771, in parse return cde.GeneratorNode(self.prepared_source, self.column_names, self.column_types, self.source_len, RuntimeError: Syntax error. ------------------------------------------------------------------ - Dataset Pipeline Error Message: ------------------------------------------------------------------ [ERROR] GeneratorNode: data row of input source must not be 0, got: 0. ------------------------------------------------------------------ - C++ Call Stack: (For framework developers) ------------------------------------------------------------------ mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/generator_node.cc(113).
环境信息:CANN6.3.RC3 python3.9.2 Euler2.8 代码:https://gitee.com/mindspore/models/tree/master/official/cv/Unet3d 测试过程: 数据集LUNA16 解压数据集: root@f8482f2c30ce:/data/data# 7za e subset9.zip 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,192 CPUs LE) Scanning the drive for archives: 1 file, 6699650017 bytes (6390 MiB) Extracting archive: subset9.zip ERRORS: Headers Error -- Path = subset9.zip Type = zip ERRORS: Headers Error Physical Size = 6699650017 64-bit = + Archives with Errors: 1 Open Errors: 1 转换脚本: python ./src/convert_nifti.py --data_path=/data/data/list/ --output_path=.//data/data/LUNA16/train/image 数据集目录:   执行训练: bash run_distribute_train.sh /home/wukong/hccl_8p_01234567.json /data/data/LUNA16/train log: home/wukong/hccl_8p_01234567.json /data/data/LUNA16/train/ start training for rank 0, device 0 start training for rank 1, device 1 start training for rank 2, device 2 start training for rank 3, device 3 start training for rank 4, device 4 start training for rank 5, device 5 start training for rank 6, device 6 start training for rank 7, device 7 [root@bms-306f scripts]# tail -f train_parallel0/log.txt {'enable_modelarts': 'Whether training on modelarts, default: False', 'enable_fp16_gpu': 'Whether training on gpu with fp16, default: False', 'data_url': 'Dataset url for obs', 'train_url': 'Training output url for obs', 'checkpoint_url': 'The location of checkpoint for obs', 'data_path': 'Dataset path for local', 'output_path': 'Training output path for local', 'load_path': 'The location of checkpoint for obs', 'device_target': 'Target device type, available: [Ascend, GPU, CPU]', 'enable_profiling': 'Whether enable profiling while training, default: False', 'num_classes': 'Class for dataset', 'batch_size': 'Batch size for training and evaluation', 'epoch_size': 'Total training epochs.', 'keep_checkpoint_max': 'keep the last keep_checkpoint_max checkpoint', 'checkpoint_path': 'The location of the checkpoint file.', 'checkpoint_file_path': 'The location of the checkpoint file.'} {'batch_size': 1, 'checkpoint_file_path': 'Unet3d-10-110.ckpt', 'checkpoint_path': './checkpoint/', 'checkpoint_url': '', 'ckpt_file': './checkpoint/Unet3d-10-110.ckpt', 'config_path': '/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/src/model_utils/../../default_config.yaml', 'data_path': '/data/data/LUNA16/train/', 'data_url': '', 'device_id': 0, 'device_target': 'Ascend', 'enable_fp16_gpu': False, 'enable_modelarts': False, 'enable_profiling': False, 'epoch_size': 10, 'file_format': 'MINDIR', 'file_name': 'unet3d', 'in_channels': 1, 'keep_checkpoint_max': 1, 'load_path': '/cache/checkpoint_path/', 'loss_scale': 256.0, 'lower_limit': 3, 'lr': 0.0005, 'max_val': 1000, 'min_val': -500, 'num_classes': 4, 'output_path': './output', 'overlap': 0.25, 'post_result_path': './result_Files', 'pre_result_path': './preprocess_Result', 'roi_size': [224, 224, 96], 'run_distribute': True, 'train_url': '', 'upper_limit': 5, 'warmup_ratio': 0.3, 'warmup_step': 120} Please check the above information for the configurations [WARNING] HCCL_ADPT(129357,ffff95a6d010,python):2023-05-27-17:07:41.340.275 [mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/hccl_adapter.cc:47] GenHcclOptions] The environment variable DEPLOY_MODE is not set. Now set to default value 0 [WARNING] ME(129357:281473192480784,MainProcess):2023-05-27-17:07:41.568.165 [mindspore/dataset/engine/datasets_user_defined.py:805] GeneratorDataset's num_parallel_workers: 4 is too large which may cause a lot of memory occupation (>85%) or out of memory(OOM) during multiprocessing. Therefore, it is recommended to reduce num_parallel_workers to 1 or smaller. [ERROR] MD(129357,ffff95a6d010,python):2023-05-27-17:07:41.967.817 [mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/generator_node.cc:113] ValidateParams] GeneratorNode: data row of input source must not be 0, got: 0 Traceback (most recent call last): File "/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/train.py", line 96, in <module> train_net(data_path=config.data_path, File "/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/src/model_utils/moxing_adapter.py", line 104, in wrapped_func run_func(*args, **kwargs) File "/home/wukong/models/official/cv/Unet3d/scripts/train_parallel0/train.py", line 63, in train_net train_data_size = train_dataset.get_dataset_size() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 1673, in get_dataset_size runtime_getter = self.__init_size_getter() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 1562, in __init_size_getter ir_tree, api_tree = self.create_ir_tree() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 398, in create_ir_tree ir_tree = dataset.parse_tree() File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 412, in parse_tree ir_children = [d.parse_tree() for d in self.children] File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 412, in <listcomp> ir_children = [d.parse_tree() for d in self.children] File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets.py", line 416, in parse_tree ir_node = self.parse(ir_children) File "/usr/local/python3.9.2/lib/python3.9/site-packages/mindspore/dataset/engine/datasets_user_defined.py", line 771, in parse return cde.GeneratorNode(self.prepared_source, self.column_names, self.column_types, self.source_len, RuntimeError: Syntax error. ------------------------------------------------------------------ - Dataset Pipeline Error Message: ------------------------------------------------------------------ [ERROR] GeneratorNode: data row of input source must not be 0, got: 0. ------------------------------------------------------------------ - C++ Call Stack: (For framework developers) ------------------------------------------------------------------ mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/generator_node.cc(113).
评论 (
6
)
登录
后才可以发表评论
状态
DONE
TODO
ACCEPTED
WIP
VALIDATION
DONE
CLOSED
REJECTED
负责人
未设置
wuweikang
HW_KK
负责人
协作者
+负责人
+协作者
简云超
jianyunchao
负责人
协作者
+负责人
+协作者
标签
modelzoo
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (17)
标签 (5)
master
r2.7.rc1
r2.3
r2.2
r2.1
r2.0
r1.8
r1.9
r2.0.0-alpha
r1.10
r1.7
r1.6
dynamic_shape
r1.5
r1.3
r1.4
r1.2
v2.2.11
v2.2.10
v2.2.1
v1.6.0
v1.5.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
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 帐号,请先登录后再操作。
立即登录
没有帐号,去注册