Skip to content

Commit

Permalink
Fix CI and Tests (#28)
Browse files Browse the repository at this point in the history
* fix tuple

* do not check out code for pypi tset
  • Loading branch information
yxlao committed Nov 25, 2023
1 parent aad5a53 commit eb178eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
python-version: ["3.7"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
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

0 comments on commit eb178eb

Please sign in to comment.