Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evaluate.py issue #237

Open
Thundermean-sky opened this issue Nov 10, 2024 · 0 comments
Open

evaluate.py issue #237

Thundermean-sky opened this issue Nov 10, 2024 · 0 comments

Comments

@Thundermean-sky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant