evaluate.py 问题

作者: Thundermean-sky创建于 2024年11月10日更新于 2025年7月10日

跟踪调用(最近一次调用在最前面): File "D:\master_doc\experiment\Depth-Anything\metric_depth\evaluate.py", line 159, in <module> eval_model(args.model, pretrained_resource=args.pretrained_resource, File "D:\master_doc\experiment\Depth-Anything\metric_depth\evaluate.py", line 131, in eval_model metrics = main(config) File "D:\master_doc\experiment\Depth-Anything\metric_depth\evaluate.py", line 115, in main metrics = evaluate(model, test_loader, config) File "C:\Users\Mean\.conda\envs\yolo\lib\site-packages\torch\\\\utils\_contextlib.py", line 116, in decorate_context return func(*args, **kwargs) File "D:\master_doc\experiment\Depth-Anything\metric_depth\evaluate.py", line 108, in evaluate metrics = {k: r(v) for k, v in metrics.get_value().items()} AttributeError: 'NoneType' object has no attribute 'items'

内容来源: LiheYoung/Depth-Anything