Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICV-mmengine_basecode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Schiffel
ICV-mmengine_basecode
Commits
c499d726
Unverified
Commit
c499d726
authored
3 years ago
by
RangiLyu
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix evaluator unit test (#112)
parent
6f69039c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_evaluator/test_base_evaluator.py
+3
-2
3 additions, 2 deletions
tests/test_evaluator/test_base_evaluator.py
with
3 additions
and
2 deletions
tests/test_evaluator/test_base_evaluator.py
+
3
−
2
View file @
c499d726
# Copyright (c) OpenMMLab. All rights reserved.
import
math
from
typing
import
Dict
,
List
,
Optional
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Sequence
,
Tuple
from
unittest
import
TestCase
import
numpy
as
np
...
...
@@ -66,7 +66,8 @@ class UnprefixedEvaluator(BaseEvaluator):
"""
Evaluator with unassigned `default_prefix` to test the warning
information.
"""
def
process
(
self
,
data_samples
:
dict
,
predictions
:
dict
)
->
None
:
def
process
(
self
,
data_batch
:
Sequence
[
Tuple
[
Any
,
BaseDataSample
]],
predictions
:
Sequence
[
BaseDataSample
])
->
None
:
pass
def
compute_metrics
(
self
,
results
:
list
)
->
dict
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment