-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
38 lines (25 loc) · 1002 Bytes
/
__init__.py
File metadata and controls
38 lines (25 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""CrossScore: Towards Multi-View Image Evaluation and Scoring.
A pip-installable package for neural image quality assessment using
cross-reference scoring with DINOv2 backbone.
Example:
>>> import crossscore
>>> results = crossscore.score(
... query_dir="path/to/query/images",
... reference_dir="path/to/reference/images",
... )
>>> print(results["scores"]) # per-image mean scores
"""
__version__ = "1.0.0"
def score(*args, **kwargs):
"""Score query images against reference images using CrossScore.
See crossscore.api.score for full documentation.
"""
from crossscore.api import score as _score
return _score(*args, **kwargs)
def get_checkpoint_path():
"""Get path to the CrossScore checkpoint, downloading if necessary.
See crossscore._download.get_checkpoint_path for full documentation.
"""
from crossscore._download import get_checkpoint_path as _get
return _get()
__all__ = ["score", "get_checkpoint_path"]