提交 60ef76b1 编写于 作者: L lyuwenyu

add logger init

上级 fb416641
...@@ -41,10 +41,15 @@ class _SysPathG(object): ...@@ -41,10 +41,15 @@ class _SysPathG(object):
self.path) self.path)
with _SysPathG( with _SysPathG(os.path.dirname(os.path.abspath(__file__)), ):
os.path.join( import ppcls
os.path.dirname(os.path.abspath(__file__)), 'ppcls', 'arch')): import ppcls.arch.backbone as backbone
import backbone
def ppclas_init():
if ppcls.utils.logger._logger is None:
ppcls.utils.logger.init_logger()
ppclas_init()
def _load_pretrained_parameters(model, name): def _load_pretrained_parameters(model, name):
url = 'https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/{}_pretrained.pdparams'.format( url = 'https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/{}_pretrained.pdparams'.format(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册