Skip to content

Commit

Permalink
replace list[] with List[]
Browse files Browse the repository at this point in the history
  • Loading branch information
haku-huang committed Mar 10, 2022
1 parent 1d1d1e9 commit 632b019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Empty file removed modules/fuse_data.py
Empty file.
6 changes: 4 additions & 2 deletions pipeline/eval.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from pathlib import Path
from typing import List

import torch
import torch.backends.cudnn
from pathlib import Path
from tqdm import tqdm

from utils.image_pair import ImagePair
Expand All @@ -18,7 +20,7 @@ def __init__(self, net, cudnn: bool = True, half: bool = False, eval: bool = Fal
self.net = net

@torch.no_grad()
def __call__(self, ir_paths: list[Path], vi_paths: list[Path], dst: Path, color: bool = False):
def __call__(self, ir_paths: List[Path], vi_paths: List[Path], dst: Path, color: bool = False):
p_bar = tqdm(enumerate(zip(ir_paths, vi_paths)), total=len(ir_paths))
for idx, (ir_path, vi_path) in p_bar:
assert ir_path.stem == vi_path.stem
Expand Down

0 comments on commit 632b019

Please sign in to comment.