Closed NoOneUST closed 1 year ago
Hello, I have the same problem. May I ask how you solved it.
Hello, I have the same problem. May I ask how you solved it.
I also have the same problem,could you please tell me how to solve it
Hi, I found a quick but dirty workaround.
I found that 'featuredecorator' is a new module in latest update, so I simply comment the import of this module in 'mmdet3d/ops/__init_\.py' like this:
...
from .ball_query import ball_query
# from .feature_decorator import feature_decorator
from .furthest_point_sample import (
Points_Sampler,
furthest_point_sample,
furthest_point_sample_with_dist,
)
...
And then I could run the code.
So I guess if your code doesn't use this model: mmdet3d/models/backbones/radar_encoder.py, this workaround would help a little.
Hi, I found a quick but dirty workaround.
I found that 'feature_decorator' is a new module in latest update, so I simply comment the import of this module in 'mmdet3d/ops/init.py' like this:
... from .ball_query import ball_query # from .feature_decorator import feature_decorator from .furthest_point_sample import ( Points_Sampler, furthest_point_sample, furthest_point_sample_with_dist, ) ...
And then I could run the code.
So I guess if your code doesn't use this model: mmdet3d/models/backbones/radar_encoder.py, this workaround would help a little.
Hi,I tried this method but still got an error. The command I'm running is ‘’torchpack dist-run -np 1 python tools/train.py configs/nuscenes/det/transfusion/secfpn/camera+lidar/swint_v0p075/convfuser.yaml --model.encoders.camera.backbone.init_cfg.checkpoint pretrained/swint-nuimages-pretrained.pth --load_from pretrained/lidar-only-det.pth‘’,but it also cannot import name 'feature_decorator_ext'.Could you please tell me your run command?or Do you know what else it might be,Thanks
Hi, I found a quick but dirty workaround. I found that 'feature_decorator' is a new module in latest update, so I simply comment the import of this module in 'mmdet3d/ops/init.py' like this:
... from .ball_query import ball_query # from .feature_decorator import feature_decorator from .furthest_point_sample import ( Points_Sampler, furthest_point_sample, furthest_point_sample_with_dist, ) ...
And then I could run the code. So I guess if your code doesn't use this model: mmdet3d/models/backbones/radar_encoder.py, this workaround would help a little.
Hi,I tried this method but still got an error. The command I'm running is ‘’torchpack dist-run -np 1 python tools/train.py configs/nuscenes/det/transfusion/secfpn/camera+lidar/swint_v0p075/convfuser.yaml --model.encoders.camera.backbone.init_cfg.checkpoint pretrained/swint-nuimages-pretrained.pth --load_from pretrained/lidar-only-det.pth‘’,but it also cannot import name 'feature_decorator_ext'.Could you please tell me your run command?or Do you know what else it might be,Thanks
Hi, I meet this error when I run the command to prepare the data and after I comment the previous line I could run the code.
For training, what about also comment this line in 'mmdet3d/models/backbones/__init__.py':
...
from .vovnet import *
from .dla import *
# from .radar_encoder import *
I guess there are bugs in this 'rader_encoder', so if you don't use it, just comment the import of it.
Thanks for your reply
Hi, I found a quick but dirty workaround. I found that 'feature_decorator' is a new module in latest update, so I simply comment the import of this module in 'mmdet3d/ops/init.py' like this:
... from .ball_query import ball_query # from .feature_decorator import feature_decorator from .furthest_point_sample import ( Points_Sampler, furthest_point_sample, furthest_point_sample_with_dist, ) ...
And then I could run the code. So I guess if your code doesn't use this model: mmdet3d/models/backbones/radar_encoder.py, this workaround would help a little.
Hi,I tried this method but still got an error. The command I'm running is ‘’torchpack dist-run -np 1 python tools/train.py configs/nuscenes/det/transfusion/secfpn/camera+lidar/swint_v0p075/convfuser.yaml --model.encoders.camera.backbone.init_cfg.checkpoint pretrained/swint-nuimages-pretrained.pth --load_from pretrained/lidar-only-det.pth‘’,but it also cannot import name 'feature_decorator_ext'.Could you please tell me your run command?or Do you know what else it might be,Thanks
Hi, I meet this error when I run the command to prepare the data and after I comment the previous line I could run the code.
For training, what about also comment this line in 'mmdet3d/models/backbones/init.py':
... from .vovnet import * from .dla import * # from .radar_encoder import *
I guess there are bugs in this 'rader_encoder', so if you don't use it, just comment the import of it.
Thanks for your reply
@K-Shao, could you please take a look at this issue? Thanks!
Sorry for the delay! This behavior is due to a bug in the feature decorator, which is a dummy OP for the ONNX exporting, which is not actually supported in the codebase currently. I have a PR (#466) that will fix the issue, but it should also simply work to (as @For24 mentions) comment out the feature decorator import in mmdet3d/ops/init.py (however, you should also comment lines 15 and 177-178 in radar_encoder.py).
I am still seeing this issue. I had old setup and it was working. Then I pulled the latest code and did again python setup.py develop. And then generated the data again, and tried training from camera segmentation cfg, then I faced this issue. I can see that latest commit is already there in my code.
Also facing the same issue!
@poddar414 @jongchyisu Have you solved it?
I have sloved this problem,you can comment the import of this module in 'mmdet3d/ops/init.py' like this: `
then it still occurs another simliar problem,you should comment another import of this module in 'mmdet3d/ops/feature_decorator/init.py' like this:
#from .feature_decorator import feature_decorator
then the problem is solved.