Skip to content
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

>我把runner_kd文件复制到runner文件夹之后,用github上的mmcv把作者项目中的mmcv替换了,然后运行了python setup.py develop安装好了mmdet2.0但是pip list之后还是没有mmcv这个环境,并且运行项目也说我缺少mmcv #24

Closed
konoha-a opened this issue Jun 29, 2022 · 0 comments

Comments

@konoha-a
Copy link

您好,非常感谢您开源您的代码。 我在配置完环境之后发现会报错:ImportError: cannot import name 'Runner_kd' from 'mmcv.runner'。我看到您说从source编译mmcv即可解决这个问题,请问什么是从source编译mmcv?不是指直接运行 python setup.py develop吗?还望指教,谢谢!

安装mmcv的时候不要用mmlab官方的mmcv,用作者自带的mmcv进行安装(clone之后进入mmcv目录编译就行),安装完之后pip list 可以看到mmcv库的location是xxxx/DeFeat.pytorch/mmcv,保证你当前环境运行的mmcv是作者带的,应该就没问题了

你好 我想问下,怎么在MMCV目录进行编译呢 还是个小白 怎么按作者的进行mmcv安装呀?还望指教下 谢谢

先找到对应版本的mmcv,去open-mmlab/mmcv 下git clone,然后把作者的runner_kd.py 拷到mmcv下,再运行官方的编译命令安装mmcv:pip install -e . 可以参考一下这里的从源安装的教程 mmcv v0.5.6

Originally posted by @ruiningTang in #14 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant