Paddle humanseg训练出现AttributeError: parameter_list argument given to the Optimizer should not be None in dygraph mode.

9rbhqvlz  于 2021-12-07  发布在  Java
关注(0)|答案(3)|浏览(620)

为使您的问题得到快速解决,在建立Issues前,请您先通过如下方式搜索是否有相似问题:【搜索issue关键字】【使用labels筛选】【官方文档】

如果您没有查询到相似问题,为快速解决您的提问,建立issue时请提供如下细节信息:

  • 标题:简洁、精准概括您的问题,例如“Insufficient Memory xxx" ”
  • 版本、环境信息:

   1)PaddlePaddle版本:请提供您的PaddlePaddle版本号 ,2 .0RC1
   2)CPU:预测若用CPU,请提供CPU型号,MKL/OpenBlas/MKLDNN/等数学库使用情况
   3)GPU:预测若用GPU,请提供GPU型号、CUDA和CUDNN版本号 gpu 2080ti CUDA10.1
   4)系统环境:请您描述系统类型、版本,例如Mac OS 10.14,Python版本
注:您可以通过执行summary_env.py获取以上信息。

  • 训练信息

   1)单机/多机,单卡/多卡 单卡,单机
   2)显存信息
   3)Operator信息

  • 复现信息:如为报错,请给出复现环境、复现步骤
  • 问题描述:请详细描述您的问题,同步贴出报错信息、日志、可复现的代码片段

Thank you for contributing to PaddlePaddle.
Before submitting the issue, you could search issue in the github in case that there was a similar issue submitted or resolved before.
If there is no solution,please make sure that this is a training issue including the following details:

System information

-PaddlePaddle version (eg.1.1)or CommitID
-CPU: including CPUMKL/OpenBlas/MKLDNN version
-GPU: including CUDA/CUDNN version
-OS Platform (eg.Mac OS 10.14)
-Other imformation: Distriuted training/informantion of operator/
Graphics card storage
Note: You can get most of the information by running summary_env.py.

To Reproduce

Steps to reproduce the behavior

Describe your current behavior
Code to reproduce the issue
Other info / logs

复现,人像分割模型,出现以下错误

File "train.py", line 169, in
train(args)
File "train.py", line 164, in train
use_vdl=args.use_vdl)
File "/home/ck/slu/koutu666/HumanSeg/models/humanseg.py", line 919, in train
quant=quant)
File "/home/ck/slu/koutu666/HumanSeg/models/humanseg.py", line 423, in train
regularization_coeff=regularization_coeff)
File "/home/ck/slu/koutu666/HumanSeg/models/humanseg.py", line 392, in default_optimizer
regularization_coeff=regularization_coeff))
File "/home/ck/.local/lib/python3.7/site-packages/paddle/fluid/optimizer.py", line 1135, ininit
name=name)
File "", line 2, ininit
File "/home/ck/.local/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py", line 257, inimpl
return func(args,kwargs)
File "/home/ck/.local/lib/python3.7/site-packages/paddle/fluid/optimizer.py", line 84, in
init
*
"parameter_list argument given to the Optimizer should not be None in dygraph mode."
AttributeError: parameter_list argument given to the Optimizer should not be None in dygraph mode.
(pt12) ck@lj:~/slu/koutu666/HumanSeg$

sirbozc5

sirbozc51#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

xv8emn3q

xv8emn3q3#

HumanSeg$ python train.py --model_type HumanSegMobile --save_dir ~/slu/koutu666/save_model --data_dir ~/slu/koutu666/folder5 --train_list ~/slu/koutu666/folder5/train.txt --val_list ~/slu/koutu666/folder5/val.txt --pretrained_weights ~/slu/koutu666/HumanSeg/pretrained_weights/humanseg_mobile_ckpt --batch_size 4 --learning_rate 0.001 --num_epochs 1000 --image_shape 600 800

相关问题