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的人真的少吗还是都没遇到过这些问题啊?谁能解答一下这个报错呢???