[Refactor] Replace if '_base_' with read_base(). (#1665)
parent
70ff2abbf7
commit
10685fc81c
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
# This is a BETA new format config file, and the usage may change recently.
|
||||
if '_base_':
|
||||
from mmengine.config import read_base
|
||||
|
||||
with read_base():
|
||||
from .._base_.default_runtime import *
|
||||
|
||||
from mmengine.dataset import DefaultSampler, default_collate
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
# This is a BETA new format config file, and the usage may change recently.
|
||||
if '_base_':
|
||||
from mmengine.config import read_base
|
||||
|
||||
with read_base():
|
||||
from .._base_.datasets.imagenet_bs64_swin_384 import *
|
||||
from .._base_.default_runtime import *
|
||||
from .._base_.models.convnext_base import *
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
# This is a BETA new format config file, and the usage may change recently.
|
||||
if '_base_':
|
||||
from mmengine.config import read_base
|
||||
|
||||
with read_base():
|
||||
from .._base_.models.mae_vit_base_p16 import *
|
||||
from .._base_.datasets.imagenet_bs512_mae import *
|
||||
from .._base_.default_runtime import *
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
# This is a BETA new format config file, and the usage may change recently.
|
||||
if '_base_':
|
||||
from mmengine.config import read_base
|
||||
|
||||
with read_base():
|
||||
from .._base_.models.mae_vit_base_p16 import *
|
||||
from .._base_.datasets.imagenet_bs512_mae import *
|
||||
from .._base_.default_runtime import *
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
# This is a BETA new format config file, and the usage may change recently.
|
||||
if '_base_':
|
||||
from mmengine.config import read_base
|
||||
|
||||
with read_base():
|
||||
from .._base_.datasets.imagenet_bs32 import *
|
||||
from .._base_.default_runtime import *
|
||||
from .._base_.models.resnet18 import *
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) OpenMMLab. All rights reserved.
|
||||
# This is a BETA new format config file, and the usage may change recently.
|
||||
if '_base_':
|
||||
from mmengine.config import read_base
|
||||
|
||||
with read_base():
|
||||
from .._base_.datasets.imagenet_bs32_simclr import *
|
||||
from .._base_.schedules.imagenet_lars_coslr_200e import *
|
||||
from .._base_.default_runtime import *
|
||||
|
|
Loading…
Reference in New Issue