InternImage
InternImage copied to clipboard
error occurs in compilation of mmdet3d
Hi , I'm trying the occupancy prediction model at https://github.com/OpenGVLab/InternImage/tree/master/autonomous_driving/occupancy_prediction but error occurs when I compile the mmdet3d==0.18.1 # recommend
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
mmdet3d/ops/ball_query/src/ball_query.cpp:4:10: fatal error: THC/THC.h: No such file or directory
#include <THC/THC.h>
^~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.
How to solve this error? @zhiqi-li Is mmdet3d==0.18.1 compatible with pytorch==1.12?
Please refer to the discussion here. <THC/ thc.h > was deleted in pytorch1.11. https://github.com/open-mmlab/mmdetection3d/issues/1332#issuecomment-1705030690