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

Fix CI and Tests #28

Merged
merged 2 commits into from
Nov 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix tuple
  • Loading branch information
yxlao committed Nov 25, 2023
commit ea1acb76f12ed2f7c04b0dc1a4f7e78c31a007c3
3 changes: 2 additions & 1 deletion camtools/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import torch
import lpips
from pathlib import Path
from typing import Tuple

from . import image
from . import io
Expand Down Expand Up @@ -196,7 +197,7 @@ def load_im_pd_im_gt_im_mask_for_eval(
im_gt_path: Path,
im_mask_path: Path = None,
alpha_mode: str = "white",
) -> tuple[np.ndarray, np.ndarray, np.ndarray]:
) -> Tuple[np.ndarray, np.ndarray, np.ndarray]:
"""
Load prediction, ground truth, and mask images for image metric evaluation.
Expand Down
Loading