PCB瑕疵检测
收藏
快速回复
AI Studio平台使用 问答Notebook项目 935 2
PCB瑕疵检测
收藏
快速回复
AI Studio平台使用 问答Notebook项目 935 2

直接fork别人的notebook,然后运行到train.pys时出现如下报错信息,没看懂什么意思,

哪位高帮忙解答一下

/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layers/utils.py:26: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
def convert_to_list(value, n, name, dtype=np.int):
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/tensor/creation.py:143: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
if data.dtype == np.object:
Traceback (most recent call last):
File "tools/train.py", line 140, in
main()
File "tools/train.py", line 116, in main
cfg = load_config(FLAGS.config)
File "/home/aistudio/work/PaddleDetection/ppdet/core/workspace.py", line 115, in load_config
cfg = _load_config_with_base(file_path)
File "/home/aistudio/work/PaddleDetection/ppdet/core/workspace.py", line 80, in _load_config_with_base
file_cfg = yaml.load(f, Loader=yaml.Loader)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/__init__.py", line 114, in load
return loader.get_single_data()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 43, in get_single_data
return self.construct_document(node)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 52, in construct_document
for dummy in generator:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 399, in construct_yaml_seq
data.extend(self.construct_sequence(node))
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 122, in construct_sequence
for child in node.value]
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 122, in
for child in node.value]
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 92, in construct_object
data = constructor(self, node)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/yaml/constructor.py", line 420, in construct_undefined
node.start_mark)
yaml.constructor.ConstructorError: could not determine a constructor for the tag '!DecodeImage'
in "/home/aistudio/cascade_mask_rcnn_dcnv2_se154_vd_fpn_gn_s1x.yml", line 198, column 5

0
收藏
回复
全部评论(2)
时间顺序
深渊上的坑
#2 回复于2021-06

这应该是PaddleDetection版本不兼容的问题

0
回复
深渊上的坑
#3 回复于2021-06

有的项目PaddleDetection是通过git获取的,而PaddleDetection更新了,一些设置就不兼容

最好是找到原来的分支,通常可能是release/0.5之类的,执行

git checkout release/0.5

加载原来的工具库

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户