[Refactor] Replace if '_base_' with read_base(). (#1665)

pull/1679/head
Yixiao Fang 2023-06-28 16:57:18 +08:00 committed by GitHub
parent 70ff2abbf7
commit 10685fc81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently. # 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 .._base_.default_runtime import *
from mmengine.dataset import DefaultSampler, default_collate from mmengine.dataset import DefaultSampler, default_collate

View File

@ -1,6 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently. # 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_.datasets.imagenet_bs64_swin_384 import *
from .._base_.default_runtime import * from .._base_.default_runtime import *
from .._base_.models.convnext_base import * from .._base_.models.convnext_base import *

View File

@ -1,6 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently. # 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_.models.mae_vit_base_p16 import *
from .._base_.datasets.imagenet_bs512_mae import * from .._base_.datasets.imagenet_bs512_mae import *
from .._base_.default_runtime import * from .._base_.default_runtime import *

View File

@ -1,6 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently. # 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_.models.mae_vit_base_p16 import *
from .._base_.datasets.imagenet_bs512_mae import * from .._base_.datasets.imagenet_bs512_mae import *
from .._base_.default_runtime import * from .._base_.default_runtime import *

View File

@ -1,6 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently. # 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_.datasets.imagenet_bs32 import *
from .._base_.default_runtime import * from .._base_.default_runtime import *
from .._base_.models.resnet18 import * from .._base_.models.resnet18 import *

View File

@ -1,6 +1,8 @@
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved.
# This is a BETA new format config file, and the usage may change recently. # 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_.datasets.imagenet_bs32_simclr import *
from .._base_.schedules.imagenet_lars_coslr_200e import * from .._base_.schedules.imagenet_lars_coslr_200e import *
from .._base_.default_runtime import * from .._base_.default_runtime import *