首页 PaddleHub 帖子详情
yolo3用自己的数据集进行模型训练报错
收藏
快速回复
PaddleHub 问答预训练模型 4309 7
yolo3用自己的数据集进行模型训练报错
收藏
快速回复
PaddleHub 问答预训练模型 4309 7

onnected to pydev debugger (build 201.8538.36)
2020-08-24 19:50:34,878-INFO: If regularizer of a Parameter has been set by 'fluid.ParamAttr' or 'fluid.WeightNormParamAttr' already. The Regularization[L2Decay, regularization_coeff=0.000500] in Optimizer will not take effect, and it will only be applied to other Parameters!
2020-08-24 19:50:38,525-INFO: Dataset D:\target_detection\PPYOLO\PaddleDetection\dataset\fruit is not valid for reason above, try searching C:\Users\mafengqiang/.cache/paddle/dataset or downloading dataset...
2020-08-24 19:50:38,525-INFO: Found C:\Users\mafengqiang/.cache/paddle/dataset\fruit\Annotations
2020-08-24 19:50:38,525-INFO: Found C:\Users\mafengqiang/.cache/paddle/dataset\fruit\JPEGImages
2020-08-24 19:50:38,545-INFO: places would be ommited when DataLoader is not iterable
2020-08-24 19:50:40,943-WARNING: C:\Users\mafengqiang/.cache/paddle/weights\ResNet50_vd_dcn_db_obj365_pretrained.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ]
2020-08-24 19:50:43,029-INFO: places would be ommited when DataLoader is not iterable
!!! The CPU_NUM is not specified, you should set CPU_NUM in the environment variable list.
CPU_NUM indicates that how many CPUPlace are used in the current task.
And if this parameter are set as N (equal to the number of physical CPU core) the program may be faster.

export CPU_NUM=8 # for example, set CPU_NUM as number of physical CPU core which is 8.

!!! The default number of CPU_NUM=1.
D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\executor.py:1070: UserWarning: The following exception is not an EOF exception.
"The following exception is not an EOF exception.")
Traceback (most recent call last):
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\executor.py", line 1071, in run
six.reraise(*sys.exc_info())
File "D:\anaconda\envs\python35\lib\site-packages\six.py", line 703, in reraise
raise value
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\executor.py", line 1066, in run
return_merged=return_merged)
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\executor.py", line 1167, in _run_impl
return_merged=return_merged)
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\executor.py", line 879, in _run_parallel
tensors = exe.run(fetch_var_names, return_merged)._move_to_list()
paddle.fluid.core_avx.EnforceNotMet:

--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
Windows not support stack backtrace yet.

------------------------------------------
Python Call Stacks (More useful to users):
------------------------------------------
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\framework.py", line 2610, in append_op
attrs=kwargs.get("attrs", None))
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\layer_helper.py", line 43, in append_op
return self.main_program.current_block().append_op(*args, **kwargs)
File "D:\anaconda\envs\python35\lib\site-packages\paddle\fluid\layers\nn.py", line 9949, in crop
attrs=None if len(attrs) == 0 else attrs)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\losses\iou_loss.py", line 204, in _bbox_transform
anchor_h = fluid.layers.crop(x=anchor_h_max, shape=dcx)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\losses\iou_aware_loss.py", line 73, in __call__
batch_size, True, scale_x_y, eps)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\losses\yolo_loss.py", line 183, in _get_fine_grained_loss
self._batch_size, scale_x_y)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\losses\yolo_loss.py", line 69, in __call__
mask_anchors, self._ignore_thresh)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\anchor_heads\yolo_head.py", line 394, in get_loss
self.prefix_name)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\architectures\yolo.py", line 85, in build
gt_score, targets)
File "D:\target_detection\PPYOLO\PaddleDetection\ppdet\modeling\architectures\yolo.py", line 159, in train
return self.build(feed_vars, mode='train')
File "D:/target_detection/PPYOLO/PaddleDetection/train.py", line 118, in main
train_fetches = model.train(feed_vars)
File "D:/target_detection/PPYOLO/PaddleDetection/train.py", line 371, in
main()
File "D:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\pydevd.py", line 1438, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\pydevd.py", line 1431, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
File "D:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\pydevd.py", line 2122, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "D:\Program Files\JetBrains\PyCharm 2020.1.3\plugins\python\helpers\pydev\pydevd.py", line 2131, in
main()

----------------------
Error Message Summary:
----------------------
InvalidArgumentError: The Tensor in the crop Op's Input Variable X(create_parameter_15.w_0) is not initialized.
[Hint: Expected t->IsInitialized() == true, but received t->IsInitialized():0 != true:1.] at (D:\1.8.4\paddle\paddle\fluid\framework\operator.cc:1289)
[operator < crop > error]
W0824 19:50:43.076591 26348 build_strategy.cc:170] fusion_group is not enabled for Windows/MacOS now, and only effective when running with CUDA GPU.

0
收藏
回复
全部评论(7)
时间顺序
S
StudyHou66
#2 回复于2020-08

出现同样的问题了,楼主解决了吗

0
回复
d
dsc小白
#3 回复于2020-08
出现同样的问题了,楼主解决了吗

同想问这个问题

0
回复
ayccccc
#4 回复于2020-10

请问楼主解决了吗,我出现了同样的问题

0
回复
AIStudio810258
#5 回复于2020-10

C:\Users\mafengqiang/.cache/paddle/weights\ResNet50_vd_dcn_db_obj365_pretrained.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ]

预训练模型没找到,查查模型下载或yaml设置的路径问题

0
回复
柏柏柏!
#6 回复于2021-03

有人解决了么

 

 

 

0
回复
一把辛酸泪
#7 回复于2021-07

能请问下你是怎么用自己的数据集的呢?

0
回复
A
AIStudio520605
#8 回复于2021-07

请问有人解决了吗

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户