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

ModuleNotFoundError: No module named 'mmdet.ops' #1

Closed
landian60 opened this issue Apr 2, 2022 · 2 comments
Closed

ModuleNotFoundError: No module named 'mmdet.ops' #1

landian60 opened this issue Apr 2, 2022 · 2 comments

Comments

@landian60
Copy link

Hello! The "mmdet" module which should be installed is not written in the "requirements.txt".And I install it but it occurs error that I can not solve it. Could you tell me what version of your "mmcv" and "mmdet" module? Thank you.
The log:
Traceback (most recent call last):
File "main.py", line 9, in
from trainer import Trainer
File "/home/user15/Amodal-Instance-Seg-ASBU/trainer.py", line 12, in
import models
File "/home/user15/Amodal-Instance-Seg-ASBU/models/init.py", line 1, in
from . import backbone
File "/home/user15/Amodal-Instance-Seg-ASBU/models/backbone/init.py", line 1, in
from .unet import *
File "/home/user15/Amodal-Instance-Seg-ASBU/models/backbone/unet/init.py", line 1, in
from .unet_model import *
File "/home/user15/Amodal-Instance-Seg-ASBU/models/backbone/unet/unet_model.py", line 8, in
from mmdet.ops.dcn.deform_conv import ModulatedDeformConvPack as Deform
ModuleNotFoundError: No module named 'mmdet.ops'
Killing subprocess 39673
Killing subprocess 39674
Traceback (most recent call last):
File "/home/user15/anaconda3/envs/occlusion/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/user15/anaconda3/envs/occlusion/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/user15/anaconda3/envs/occlusion/lib/python3.7/site-packages/torch/distributed/launch.py", line 340, in
main()
File "/home/user15/anaconda3/envs/occlusion/lib/python3.7/site-packages/torch/distributed/launch.py", line 326, in main
sigkill_handler(signal.SIGTERM, None) # not coming back
File "/home/user15/anaconda3/envs/occlusion/lib/python3.7/site-packages/torch/distributed/launch.py", line 301, in sigkill_handler
raise subprocess.CalledProcessError(returncode=last_return_code, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/user15/anaconda3/envs/occlusion/bin/python', '-u', 'main.py', '--local_rank=1', '--config', 'experiments/KINS/pcnet_m/config_train_default_no_rgb.yaml', '--launcher', 'pytorch', '--exp_path', 'experiments/KINS/pcnet_m_default_no_rgb']' returned non-zero exit status 1.

@Championchess
Copy link

Have you resolved the problem eventually? I am also facing the same issue

@rukshankr
Copy link

@landian60 could you tell me how you solved the issue?

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

3 participants