首页 PaddleCV 帖子详情
paddleseg恢复训练时报错
收藏
快速回复
PaddleCV 问答语义分割实例分割目标检测 384 0
paddleseg恢复训练时报错
收藏
快速回复
PaddleCV 问答语义分割实例分割目标检测 384 0

paddleseg恢复训练时报错:UnboundLocalError: local variable 'images' referenced before assignment

Traceback (most recent call last):
File "mytrain.py", line 201, in
main(args)
File "mytrain.py", line 195, in main
to_static_training=cfg.to_static_training)
File "D:\MyWorkPro\PythonPro\PaddleSeg-2.4\paddleseg\core\train.py", line 336, in train
_, c, h, w = images.shape
UnboundLocalError: local variable 'images' referenced before assignment

网上的资料少得可怜,唯一看到一个说加上下面这句的:

for data in loader:
images=data[0]
break

结果又报错:

's flops has been counted
's flops has been counted
's flops has been counted
Cannot find suitable count function for . Treat it as zero FLOPs.
's flops has been counted
Cannot find suitable count function for . Treat it as zero FLOPs.
's flops has been counted
Cannot find suitable count function for . Treat it as zero FLOPs.
's flops has been counted
Total Flops: 37786116352 Total Params: 2328346

再继续找资料就没有了。。。。。怎么用paddle的人真的少吗还是都没遇到过这些问题啊?谁能解答一下这个报错呢???

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