Open letdivedeep opened 1 year ago
you can use following command to upgrate mmengine to >=0.6.0:
! pip install mmengine>=0.6.0
@YuanLiuuuuuu Thanks for your response. I ran the above command by which I was able to resolve the issue. But this was all working with a torch version of
1.12.1+cu113
And I want to run this with a torch version 1.10.0
when I updated the pytorch version to 1.10.0, on the same notebook I started getting issues while starting the training
AssertionError Traceback (most recent call last)
/tmp/ipykernel_3910/394836790.py in <module>
6 # register all modules in mmselfsup into the registries
7 # do not init the default scope here because it will be init in the runner
----> 8 register_all_modules(init_default_scope=False)
9
10 # build the runner from config
/mmselfsup/mmselfsup/utils/setup_env.py in register_all_modules(init_default_scope)
19 """ # noqa
20 import mmselfsup.datasets # noqa: F401,F403
---> 21 import mmselfsup.engine # noqa: F401,F403
22 import mmselfsup.evaluation # noqa: F401,F403
23 import mmselfsup.models # noqa: F401,F403
/mmselfsup/mmselfsup/engine/__init__.py in <module>
1 # Copyright (c) OpenMMLab. All rights reserved.
----> 2 from .hooks import * # noqa: F401, F403
3 from .optimizers import * # noqa: F401, F403
/mmselfsup/mmselfsup/engine/hooks/__init__.py in <module>
1 # Copyright (c) OpenMMLab. All rights reserved.
----> 2 from .deepcluster_hook import DeepClusterHook
3 from .densecl_hook import DenseCLHook
4 from .odc_hook import ODCHook
5 from .simsiam_hook import SimSiamHook
/mmselfsup/mmselfsup/engine/hooks/deepcluster_hook.py in <module>
9 from mmengine.logging import print_log
10
---> 11 from mmselfsup.models.utils import Extractor
12 from mmselfsup.registry import HOOKS
13 from mmselfsup.utils import clustering as _clustering
/mmselfsup/mmselfsup/models/__init__.py in <module>
1 # Copyright (c) OpenMMLab. All rights reserved.
----> 2 from .algorithms import * # noqa: F401,F403
3 from .backbones import * # noqa: F401,F403
4 from .builder import (ALGORITHMS, BACKBONES, HEADS, LOSSES, MEMORIES, NECKS,
5 build_algorithm, build_backbone, build_head, build_loss,
/mmselfsup/mmselfsup/models/algorithms/__init__.py in <module>
3 from .base import BaseModel
4 from .beit import BEiT
----> 5 from .byol import BYOL
6 from .cae import CAE
7 from .deepcluster import DeepCluster
/mmselfsup/mmselfsup/models/algorithms/byol.py in <module>
7 from mmselfsup.registry import MODELS
8 from mmselfsup.structures import SelfSupDataSample
----> 9 from ..utils import CosineEMA
10 from .base import BaseModel
11
/mmselfsup/mmselfsup/models/utils/__init__.py in <module>
20
21 try:
---> 22 from .res_layer_extra_norm import ResLayerExtraNorm
23 except ImportError:
24 ResLayerExtraNorm = None
/mmselfsup/mmselfsup/models/utils/res_layer_extra_norm.py in <module>
3
4 try:
----> 5 from mmdet.models.backbones import ResNet
6 from mmdet.models.builder import SHARED_HEADS
7 from mmdet.models.roi_heads.shared_heads.res_layer import ResLayer
/opt/conda/lib/python3.7/site-packages/mmdet/__init__.py in <module>
24 assert (mmcv_version >= digit_version(mmcv_minimum_version)
25 and mmcv_version <= digit_version(mmcv_maximum_version)), \
---> 26 f'MMCV=={mmcv.__version__} is used but incompatible. ' \
27 f'Please install mmcv>={mmcv_minimum_version}, <={mmcv_maximum_version}.'
28
AssertionError: MMCV==2.0.0rc4 is used but incompatible. Please install mmcv>=1.3.17, <=1.8.0.
Can you help me know if 1.x version work with torch 1.10, have attached the notebook mmselfsup_colab_tutorial_pytorch1-10.ipynb.zip
@YuanLiuuuuuu 1.x can work with pytorch 1.10
Did you solve this problem?
Did you solve this problem?
No @YuanLiuuuuuu, I was not able to solve the above problem, so just wanted to check if 1.x works with pytorch 1.10 ... As in the notebook I am trying to build using the same pytorch version
@YuanLiuuuuuu were you able to reproduce the issue ?
Branch
1.x branch (1.x version, such as
v1.0.0rc2
, ordev-1.x
branch)Prerequisite
Environment
Describe the bug
Not able to run the provided colab notebook. Have attached the demo notebook. which gives issues while running the model training as
mmselfsup_colab_tutorial.ipynb.zip
Reproduces the problem - code sample
No response
Reproduces the problem - command or script
No response
Reproduces the problem - error message
No response
Additional information
No response