Skip to content

Commit

Permalink
[Doc] Fix typo. (#1281)
Browse files Browse the repository at this point in the history
* [Fix] Fix imports in transforms. (#1255)

* fix import

* import from mmegine.utils

* 修复错别字

Co-authored-by: Xieyuan Zhang <[email protected]>
  • Loading branch information
bobo0810 and Francis777 authored Dec 30, 2022
1 parent 88e5ba2 commit 4f5350f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/zh_CN/user_guides/finetune.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ _base_ = [

## 修改模型

在进行模型微调是,我们通常希望在主干网络(backbone)加载预训练模型,再用我们的数据集训练一个新的分类头(head)。
在进行模型微调时,我们通常希望在主干网络(backbone)加载预训练模型,再用我们的数据集训练一个新的分类头(head)。

为了在主干网络加载预训练模型,我们需要修改主干网络的初始化设置,使用
`Pretrained` 类型的初始化函数。另外,在初始化设置中,我们使用 `prefix='backbone'`
Expand Down
5 changes: 2 additions & 3 deletions mmcls/datasets/transforms/auto_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

import mmcv
import numpy as np
from mmcv import BaseTransform, RandomChoice
from mmcv.transforms import Compose
from mmcv.transforms import BaseTransform, Compose, RandomChoice
from mmcv.transforms.utils import cache_randomness
from mmengine import is_list_of, is_seq_of
from mmengine.utils import is_list_of, is_seq_of

from mmcls.registry import TRANSFORMS

Expand Down

0 comments on commit 4f5350f

Please sign in to comment.