未验证 提交 81408ade 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

add stat for hub convert. (#844)

上级 185b7e0f
......@@ -21,6 +21,7 @@ from string import Template
from paddlehub.common import tmp_dir
from paddlehub.commands.base_command import BaseCommand, ENTRY
from paddlehub.common.hub_server import CacheUpdater
INIT_FILE = '__init__.py'
MODULE_FILE = 'module.py'
......@@ -140,6 +141,7 @@ class ConvertCommand(BaseCommand):
self.dest = args.output_dir if args.output_dir is not None else os.path.join(
'{}_{}'.format(self.module, str(time.time())))
CacheUpdater("hub_convert", self.module, self.version).start()
os.makedirs(self.dest)
with tmp_dir() as _dir:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册