提交 ac4967e2 编写于 作者: X xiongxinlei

optimize the data prepare process

上级 016ed6d6
......@@ -53,8 +53,7 @@ class Timer(object):
def eta(self) -> str:
if not self.is_running:
return '00:00:00'
scale = self.total_step / self.current_step
remaining_time = (time.time() - self.start_time) * scale
remaining_time = time.time() - self.start_time
return seconds_to_hms(remaining_time)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册