登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
9月20日,Gitee × 模力方舟来成都了!聚焦 AI 应用在开发范式、算力架构、交互设计、硬件选型等跨场景创新实践,点击立即报名~
代码拉取完成,页面将自动刷新
开源项目
>
人工智能
>
AI-人工智能
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
13
Star
118
Fork
31
DeepSpark
/
DeepSparkInference
代码
Issues
3
Pull Requests
0
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
transformer_asr,facenet ixrt报错
已关闭
#IBIEOS
honglyua
成员
创建于
2025-01-17 10:36
### 该问题是怎么引起的? ### 重现步骤 ### 报错信息 transformer_asr: ``` root@908560e41ac9:~/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt# python3 inference.py hparams/train_ASR_transformer.yaml --data_folder=/home/data/speechbrain/aishell --engine_path transformer.engine Loaded plugin from /usr/local/corex-4.2.0/lib64/python3/dist-packages/ixrt/lib/libixrt_plugin.so /home/data/speechbrain/aishell/rirs_noises.zip exists. Skipping download /usr/local/lib/python3.10/site-packages/speechbrain/lobes/augment.py:509: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/data/speechbrain/aishell/RIRS_NOISES/pointsource_noises/noise_list' mode='r' encoding='UTF-8'> for line in open(filelist): ResourceWarning: Enable tracemalloc to get the object allocation traceback speechbrain.core - Beginning experiment! speechbrain.core - Experiment folder: results/transformer/8886 speechbrain.pretrained.fetching - Fetch tokenizer.ckpt: Using existing file/symlink in results/transformer/8886/save/tokenizer.ckpt. speechbrain.utils.parameter_transfer - Loading pretrained files for: tokenizer speechbrain.core - Info: ckpt_interval_minutes arg from hparam file is used speechbrain.core - 31.0M trainable parameters in ASR /usr/local/corex-4.2.0/lib64/python3/dist-packages/ixrt/__init__.py:28: DeprecationWarning: Context managers for IxRT types are deprecated. Memory will be freed automatically when the reference count reaches 0. warnings.warn( [INFO] FCPluginDynamic deserialize [INFO] FCPluginDynamic initialize [INFO] FCPluginDynamic clone [INFO] Half Weights(Host) => Half Array(Host) [INFO] Half Weights(Host) => Half Array(Host) [INFO] FCPluginDynamic initialize *** start evaluation *** speechbrain.utils.checkpoints - Loading a checkpoint from results/transformer/8886/save/CKPT+2021-04-20+23-20-18+00 /usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py:93: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. obj.load_state_dict(torch.load(path, map_location=device), strict=True) speechbrain.core - Exception: Traceback (most recent call last): File "/root/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt/inference.py", line 596, in <module> asr_brain.evaluate( File "/root/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt/inference.py", line 380, in evaluate self.on_evaluate_start(max_key=max_key, min_key=min_key) File "/root/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt/inference.py", line 348, in on_evaluate_start super().on_evaluate_start() File "/usr/local/lib/python3.10/site-packages/speechbrain/core.py", line 836, in on_evaluate_start self.checkpointer.recover_if_possible( File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 840, in recover_if_possible self.load_checkpoint(chosen_ckpt, device) File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 853, in load_checkpoint self._call_load_hooks(checkpoint, device) File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 988, in _call_load_hooks default_hook(obj, loadpath, end_of_epoch, device) File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 93, in torch_recovery obj.load_state_dict(torch.load(path, map_location=device), strict=True) File "/usr/local/corex-4.2.0/lib64/python3/dist-packages/torch/nn/modules/module.py", line 2215, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for ModuleList: Unexpected key(s) in state_dict: "0.convblock_0.convs.norm_0.norm.running_mean", "0.convblock_0.convs.norm_0.norm.running_var", "0.convblock_0.convs.norm_0.norm.num_batches_tracked", "0.convblock_1.convs.norm_0.norm.running_mean", "0.convblock_1.convs.norm_0.norm.running_var", "0.convblock_1.convs.norm_0.norm.num_batches_tracked". size mismatch for 0.convblock_0.convs.norm_0.norm.weight: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([40, 256]). size mismatch for 0.convblock_0.convs.norm_0.norm.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([40, 256]). size mismatch for 0.convblock_1.convs.norm_0.norm.weight: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([20, 256]). size mismatch for 0.convblock_1.convs.norm_0.norm.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([20, 256]). Segmentation fault (core dumped) ``` facenet: 需要tf1 导出onnx报错,待确认
### 该问题是怎么引起的? ### 重现步骤 ### 报错信息 transformer_asr: ``` root@908560e41ac9:~/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt# python3 inference.py hparams/train_ASR_transformer.yaml --data_folder=/home/data/speechbrain/aishell --engine_path transformer.engine Loaded plugin from /usr/local/corex-4.2.0/lib64/python3/dist-packages/ixrt/lib/libixrt_plugin.so /home/data/speechbrain/aishell/rirs_noises.zip exists. Skipping download /usr/local/lib/python3.10/site-packages/speechbrain/lobes/augment.py:509: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/data/speechbrain/aishell/RIRS_NOISES/pointsource_noises/noise_list' mode='r' encoding='UTF-8'> for line in open(filelist): ResourceWarning: Enable tracemalloc to get the object allocation traceback speechbrain.core - Beginning experiment! speechbrain.core - Experiment folder: results/transformer/8886 speechbrain.pretrained.fetching - Fetch tokenizer.ckpt: Using existing file/symlink in results/transformer/8886/save/tokenizer.ckpt. speechbrain.utils.parameter_transfer - Loading pretrained files for: tokenizer speechbrain.core - Info: ckpt_interval_minutes arg from hparam file is used speechbrain.core - 31.0M trainable parameters in ASR /usr/local/corex-4.2.0/lib64/python3/dist-packages/ixrt/__init__.py:28: DeprecationWarning: Context managers for IxRT types are deprecated. Memory will be freed automatically when the reference count reaches 0. warnings.warn( [INFO] FCPluginDynamic deserialize [INFO] FCPluginDynamic initialize [INFO] FCPluginDynamic clone [INFO] Half Weights(Host) => Half Array(Host) [INFO] Half Weights(Host) => Half Array(Host) [INFO] FCPluginDynamic initialize *** start evaluation *** speechbrain.utils.checkpoints - Loading a checkpoint from results/transformer/8886/save/CKPT+2021-04-20+23-20-18+00 /usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py:93: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. obj.load_state_dict(torch.load(path, map_location=device), strict=True) speechbrain.core - Exception: Traceback (most recent call last): File "/root/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt/inference.py", line 596, in <module> asr_brain.evaluate( File "/root/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt/inference.py", line 380, in evaluate self.on_evaluate_start(max_key=max_key, min_key=min_key) File "/root/deepsparkinference/models/audio/speech_recognition/transformer_asr/ixrt/inference.py", line 348, in on_evaluate_start super().on_evaluate_start() File "/usr/local/lib/python3.10/site-packages/speechbrain/core.py", line 836, in on_evaluate_start self.checkpointer.recover_if_possible( File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 840, in recover_if_possible self.load_checkpoint(chosen_ckpt, device) File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 853, in load_checkpoint self._call_load_hooks(checkpoint, device) File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 988, in _call_load_hooks default_hook(obj, loadpath, end_of_epoch, device) File "/usr/local/lib/python3.10/site-packages/speechbrain/utils/checkpoints.py", line 93, in torch_recovery obj.load_state_dict(torch.load(path, map_location=device), strict=True) File "/usr/local/corex-4.2.0/lib64/python3/dist-packages/torch/nn/modules/module.py", line 2215, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for ModuleList: Unexpected key(s) in state_dict: "0.convblock_0.convs.norm_0.norm.running_mean", "0.convblock_0.convs.norm_0.norm.running_var", "0.convblock_0.convs.norm_0.norm.num_batches_tracked", "0.convblock_1.convs.norm_0.norm.running_mean", "0.convblock_1.convs.norm_0.norm.running_var", "0.convblock_1.convs.norm_0.norm.num_batches_tracked". size mismatch for 0.convblock_0.convs.norm_0.norm.weight: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([40, 256]). size mismatch for 0.convblock_0.convs.norm_0.norm.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([40, 256]). size mismatch for 0.convblock_1.convs.norm_0.norm.weight: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([20, 256]). size mismatch for 0.convblock_1.convs.norm_0.norm.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([20, 256]). Segmentation fault (core dumped) ``` facenet: 需要tf1 导出onnx报错,待确认
评论 (
0
)
登录
后才可以发表评论
状态
已关闭
待办的
进行中
已完成
已关闭
负责人
未设置
honglyua
honglyua
负责人
协作者
+负责人
+协作者
标签
bug
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (25)
标签 (6)
master
igie_model_dev
update_igie_build_engin
r2509
release_note_for_25.09
change_model_name_of_llava
add_cosyvoice_infer
ernie
fix_bert_base_url_not_found
ixrt_rename
ixrt_atss
add_ixrt_cls
ixrt_model_dev
check_models_valid
release/25.06
add_ixrt_models
igie_fix
ixrt_shufflenet_v2
release/25.03
4.1.2
release/24.12
release/24.09
release/24.06
openi
release/24.03
25.06
25.03
24.12
24.09
24.06
24.03
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Python
1
https://gitee.com/deep-spark/deepsparkinference.git
git@gitee.com:deep-spark/deepsparkinference.git
deep-spark
deepsparkinference
DeepSparkInference
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册