2021-10-27 13:43:58,834-INFO: places would be ommited when DataLoader is not iterable
W1027 13:43:58.857717 3458 device_context.cc:252] Please NOTE: device: 0, CUDA Capability: 70, Driver API Version: 10.1, Runtime API Version: 9.0
W1027 13:43:58.863272 3458 device_context.cc:260] device: 0, cuDNN Version: 7.6.
Traceback (most recent call last):
File "tools/eval.py", line 180, in
main()
File "tools/eval.py", line 141, in main
checkpoint.load_params(exe, startup_prog, cfg.weights)
File "/home/aistudio/work/PaddleDetection/ppdet/utils/checkpoint.py", line 114, in load_params
if is_url(path):
File "/home/aistudio/work/PaddleDetection/ppdet/utils/checkpoint.py", line 48, in is_url
return path.startswith('http://') or path.startswith('https://')
AttributeError: 'NoneType' object has no attribute 'startswith'
请问这个是哪里出现问题了啊
这是读取checkpoint的权重时报错了,看上去是存储在云端权重的地址解析错误
看上去好复杂,要怎么解决啊
从报错上看,是执行tool/eval.py 脚本报的错,可能是设置的权重参数地址出错了
places would be ommited when DataLoader is not iterable
'NoneType' object has no attribute 'startswith'
是数据集定义错误了,检查数据变量的命名,格式是否正确