LiheYoung / Depth-Anything

[CVPR 2024] Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data. Foundation Model for Monocular Depth Estimation
https://depth-anything.github.io
Apache License 2.0
7.05k stars 542 forks source link

evaluate.py issue #237

Open Thundermean-sky opened 2 weeks ago

Thundermean-sky commented 2 weeks ago

Traceback (most recent call last): File "D:\master_doc\experiment\Depth-Anything\metric_depth\evaluate.py", line 159, in 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'

When I try to evaluate vitl, it shows an error. When I print the metrics, it print {'_dic': None}. How can I fix this?

code position: evaluate.py---108