mmpretrain
mmpretrain copied to clipboard
RuntimeError: The configuration file type in the inheritance chain must match the current configuration file type, either "lazy_import" or non-"lazy_import".
Branch
main branch (mmpretrain version)
Describe the bug
I am following https://mmpretrain.readthedocs.io/en/dev/papers/replknet.html
import torch
from mmpretrain import get_model
model = get_model('replknet-31B_3rdparty_in1k', pretrained=True)
inputs = torch.rand(1, 3, 224, 224)
out = model(inputs)
print(type(out))
# To extract features.
feats = model.extract_feat(inputs)
print(type(feats))
running this code is giving this error
Traceback (most recent call last):
File "C:\Users\robert"\ml_solution\vit\replknet.py.py", line 4, in with read_base(): ... or import non-builtin module in c:\users\robert\mmpretrain.mim\configs\replknet../base/models/replknet-31B_in1k.py. See more information in https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html
Environment
{'sys.platform': 'win32', 'Python': '3.10.14 | packaged by Anaconda, Inc. | (main, May 6 2024, ' '19:44:50) [MSC v.1916 64 bit (AMD64)]', 'CUDA available': False, 'MUSA available': False, 'numpy_random_seed': 2147483648, 'GCC': 'n/a', 'PyTorch': '2.3.0+cpu', 'TorchVision': '0.18.0+cpu', 'OpenCV': '4.9.0', 'MMEngine': '0.10.4', 'MMCV': '2.2.0', 'MMPreTrain': '1.2.0+'}
Other information
No response
Following this
I have the same promblem.
I have the same promblem.