Skip to content

Commit

Permalink
Add assertion for checking dataset size
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-11 committed Apr 29, 2024
1 parent bb25483 commit 62e5a2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/engine/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def inference_for_ss(args, cfg, model, test_loader):

fnames = []
max_iter = len(test_loader)
assert max_iter != 0, "Dataset size is 0!!"

img_psnr_scores = np.array([])
kernel_psnr_scores = np.array([])
Expand Down

0 comments on commit 62e5a2c

Please sign in to comment.