[BUG] Fixed circular import error for new transform ()

pull/1624/head
Mr.Li 2023-06-08 14:00:41 +08:00 committed by GitHub
parent bddbc085fc
commit 057d7c6d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
docs
en/advanced_guides
zh_CN/advanced_guides

View File

@ -134,7 +134,7 @@ train_pipeline = [
```python
from mmcv.transforms import BaseTransform
from mmpretrain.datasets import TRANSFORMS
from mmpretrain.registry import TRANSFORMS
@TRANSFORMS.register_module()
class MyTransform(BaseTransform):

View File

@ -112,7 +112,7 @@ train_pipeline = [
```python
from mmcv.transforms import BaseTransform
from mmpretrain.datasets import TRANSFORMS
from mmpretrain.registry import TRANSFORMS
@TRANSFORMS.register_module()
class MyTransform(BaseTransform):