Skip to content

Commit

Permalink
include progress bar for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusufma03 committed Nov 10, 2020
1 parent a3fa286 commit f40ac62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from .star import STAR
from .utils import *

from tqdm import tqdm


class processor(object):
def __init__(self, args):
Expand Down Expand Up @@ -154,7 +156,7 @@ def test_epoch(self):
error_epoch, final_error_epoch = 0, 0,
error_cnt_epoch, final_error_cnt_epoch = 1e-5, 1e-5

for batch in range(self.dataloader.testbatchnums):
for batch in tqdm(range(self.dataloader.testbatchnums)):

inputs, batch_id = self.dataloader.get_test_batch(batch)
inputs = tuple([torch.Tensor(i) for i in inputs])
Expand Down

0 comments on commit f40ac62

Please sign in to comment.