-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No module named 'mmselfsup.engine.runner' #745
Comments
i encounter this problem too |
And i now switched to 1.0.0rc6 and installed, the problem fixed. |
#746 |
I also encountered the same problem, it is useless to change the version, how to solve it? |
i found that the contents of registry.py in the main branch are different from that in the v1.0.0rc6 branch |
It is because mmengine update the some logic in registry, so we need to update the this part of code |
please git pull the main branch to update your code, the pr is merged |
Thanks, after git pull main branch its working now. However, can anyone please let me know how to structure the custom data folder? My folder structure is: data when I run the config I am getting following error: ValueError: class My config file is: `# dataset settings view_pipeline = [ train_pipeline = [ train_dataloader = dict( model = dict( optimizer = dict(type='SGD', lr=0.03, weight_decay=1e-4, momentum=0.9) param_scheduler = [ train_cfg = dict(type='EpochBasedTrainLoop', max_epochs=200) default_scope = 'mmselfsup' default_hooks = dict( env_cfg = dict( log_processor = dict( vis_backends = [dict(type='LocalVisBackend')] log_level = 'INFO' |
Did you find any solution for this as I am facing the same problem? |
To sum up, the solution for this issue is: However, if you still encounter this issue, you can try to reinstall mmselfsup from the source first, then follow this repair tutorial steps 2-3. |
The problem is the registry, for some reason the location of RUNNERS = Registry("runner", parent=MMENGINE_RUNNERS)
RUNNER_CONSTRUCTORS = Registry("runner constructor", parent=MMENGINE_RUNNER_CONSTRUCTORS)
LOOPS = Registry("loop", parent=MMENGINE_LOOPS) |
After I run the command below:
python tools/train.py configs/selfsup/base/mae_vit-base-p16_Test.py
It get the error below:
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mmselfsup.engine.runner'
How to solve it?
Thanks.
My config file is:
`base = [
'../base/models/mae_vit-base-p16.py',
'../base/datasets/imagenet_mae.py',
'../base/schedules/adamw_coslr-200e_in1k.py',
'../base/default_runtime.py',
]
train_dataloader = dict(batch_size=2, num_workers=2)
optimizer = dict(
type='AdamW', lr=1.5e-4 * 4096 / 256, betas=(0.9, 0.95), weight_decay=0.05)
optim_wrapper = dict(
type='OptimWrapper',
optimizer=optimizer,
paramwise_cfg=dict(
custom_keys={
'ln': dict(decay_mult=0.0),
'bias': dict(decay_mult=0.0),
'pos_embed': dict(decay_mult=0.),
'mask_token': dict(decay_mult=0.),
'cls_token': dict(decay_mult=0.)
}))
param_scheduler = [
dict(
type='LinearLR',
start_factor=1e-4,
by_epoch=True,
begin=0,
end=40,
convert_to_iter_based=True),
dict(
type='CosineAnnealingLR',
T_max=360,
by_epoch=True,
begin=40,
end=400,
convert_to_iter_based=True)
]
train_cfg = dict(max_epochs=400)
default_hooks = dict(
logger=dict(type='LoggerHook', interval=100),
# only keeps the latest 3 checkpoints
checkpoint=dict(type='CheckpointHook', interval=1, max_keep_ckpts=3))
randomness = dict(seed=0, diff_rank_seed=True)
resume = True`
The text was updated successfully, but these errors were encountered: