MCPcopy Create free account
hub / github.com/modelscope/modelscope / start

Method start

modelscope/preprocessors/cv/util.py:41–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

39 return width
40
41 def start(self):
42 if self.task_num > 0:
43 self.file.write(f'[{" " * self.bar_width}] 0/{self.task_num}, '
44 'elapsed: 0s, ETA:')
45 else:
46 self.file.write('completed: 0, elapsed: 0s')
47 self.file.flush()
48 self.timer = Timer()
49
50 def update(self, num_tasks=1):
51 assert num_tasks > 0

Callers 1

__init__Method · 0.95

Calls 2

TimerClass · 0.70
writeMethod · 0.45

Tested by

no test coverage detected