-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microssim now handles an array of gt,pred pairs where individual gt c…
…ould have different shape
- Loading branch information
Showing
7 changed files
with
119 additions
and
2,018 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# Objective | ||
This is the official implementation of Range invariant SSIM metric. | ||
This is the official implementation of [MicroSSIM](https://arxiv.org/abs/2408.08747), accepted at BIC, ECCV 2024. | ||
## Installation | ||
We will soon release the package on PyPI. For now, you can install the package by cloning the repository and running the following command: | ||
```bash | ||
git clone [email protected]:juglab/MicroSSIM.git | ||
cd MicroSSIM | ||
pip install -e . | ||
``` | ||
## Usage | ||
```python | ||
from microssim import MicroSSIM, MicroMS3IM | ||
gt: N x H x W | ||
pred: N x H x W | ||
|
||
ssim = MicroSSIM() # or MicroMS3IM() | ||
ssim.fit(gt, pred) | ||
|
||
for i in range(N): | ||
score = ssim.score(gt[i], pred[i]) | ||
print('SSIM score for', i, 'th image:', score) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.