-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove runner, parallel, engine and device #2216
Conversation
from mmcv.parallel import collate, scatter |
same problem... even I have changed mmcv to 1.4.0... messy version management |
from mmcv.parallel import is_module_wrapper |
Do collate and scatter even exist now? This is extremely poor practice to remove functionality without specifying where it was moved to. |
No. ModelWrapper related modules and
|
So, where is the parallel in MMEngine, How to use it? |
from mmcv.runner import load_checkpoint |
|
|
Where is MMDataParallel? Further, Where is |
For |
from mmcv.runner import get_dist_info, init_dist, set_random_seed |
These modules has been moved from mmcv to mmengine.
|
So where are they removed to? |
from mmcv.runner import DistEvalHook as _DistEvalHook |
Sorry, they are deleted. |
它们也被删除了,但是大多数的功能被移至了 mmengine.hooks.checkpoint_hook.CheckpointHook 您可以参考 https://github.com/open-mmlab/mmengine/blob/main/mmengine/hooks/checkpoint_hook.py |
请问from mmcv.utils import get_logger是否也已经删除了呢 |
是的,它也被删除了 |
请问它的功能被转移到什么地方了呢 |
或许您可以在 https://github.com/open-mmlab/mmengine/blob/main/mmengine/logging/logger.py 获得帮助。 |
谢谢 |
where is ''mmcv.runner import auto_fp16, force_fp32'' now |
Hello! @fanqiNO1 @HAOCHENYE Where can I find "obj_from_dict" in mmcv version 2.1.0? I cannot find it in mmengine? Is it being replaced by some equivalent function? Additionally, where can I find "OptimizerHook"? Thanks |
你好,请问您有遇到调用"from mmcv.utils import get_logger" 报错 ”cannot import name 'get_logger' from 'mmcv.utils'“的问题吗?如果有的话想问下您最后有解决吗? |
你好,请问“from mmcv.runner import force_fp32”移动到哪里去了呢,还有“from mmdet.core import (distance2bbox, multi_apply, reduce_mean, bbox2result, bbox_overlaps)”移动到哪里去了呢? |
Sorry, |
你好,请问之前的 from mmcv.runner import OPTIMIZER_BUILDERS, DefaultOptimizerConstructor from mmdet.utils import get_root_logger 在新版本中该如何引用? |
how should I use |
how should I use in the new version?from mmcv.runner import BaseModule |
Damn it, how can I find notes showing all the changes from mmcv to mmengine? The functions are removed, transferred, renamed ... It brings lots of trouble |
versions are changed a lots without referencing anything such as migration information. What is wrong with you guys? |
Hi, have 'collate' and 'scatter' been removed? Can I find them somewhere else? In this link there is no replace for them. |
I don't know how some GitHub projects still using these functions without any struggling. I spent 2 hour to fix the mismatch library of mmcv function and there is still some error to fix. |
|
from mmcv.parallel import collate, scatter |
I have the same question. Have you already solved it? |
but the mmcls still needs them, where can I get a new mmcls? |
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Remove training-related modules because they have been re-implemented in
mmengine
.Modification
Remove the following modules
BC-breaking (Optional)
Yes
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist
Before PR:
After PR: