DDGRCF / YOLOX_OBB

https://zhuanlan.zhihu.com/p/430850089
Apache License 2.0
147 stars 19 forks source link

ImportError #41

Open zibai4991 opened 1 year ago

DDGRCF commented 1 year ago

You maybe not compile

zibai4991 @.***> 于2023年7月18日周二 11:00写道:

(yolox_obb) @.***:~/opt/YOLOX_OBB$ bash my_exps/train.sh MEF-G ./exps/example/yolox_obb/yolox_s_MFE-G.py 0 0 16 --fp16

activate env yolox_obb

Current dir is /home/zibai/opt/YOLOX_OBB exp is ./exps/example/yolox_obb/yolox_s_MFE-G.py cuda_device is cuda: 0 num_device is 0 batch_size is 16 other args: --fp16 ready train .... Traceback (most recent call last): File "tools/train.py", line 13, in from yolox.core import Trainer, launch File "/home/zibai/opt/YOLOX_OBB/yolox/init.py", line 4, in from .utils import configure_module File "/home/zibai/opt/YOLOX_OBB/yolox/utils/init.py", line 6, in from .boxes import File "/home/zibai/opt/YOLOX_OBB/yolox/utils/boxes.py", line 9, in from yolox.ops.pytorch.nms_rotated import multiclass_obb_nms File "/home/zibai/opt/YOLOX_OBB/yolox/ops/init.py", line 1, in from .pytorch import obb_overlaps, multiclass_obb_nms, convex_sort, obb_nms, poly_nms, RoIAlignRotated, RoIAlign File "/home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/init.py", line 4, in from .box_iou_rotated import File "/home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/box_iou_rotated/init.py", line 1, in from .box_iou_rotated_wrapper import obb_overlaps File "/home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/box_iou_rotated/box_iou_rotated_wrapper.py", line 4, in from . import box_iou_rotated_ext ImportError: /home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/box_iou_rotated/ box_iou_rotated_ext.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c104impl8GPUTrace13gpuTraceStateE /home/zibai

— Reply to this email directly, view it on GitHub https://github.com/DDGRCF/YOLOX_OBB/issues/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFM3ADQRCPTRLHSINMO253XQX35TANCNFSM6AAAAAA2NX22F4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DDGRCF commented 1 year ago

python setup.py develop

饶超凡 @.***> 于2023年7月18日周二 23:37写道:

You maybe not compile

zibai4991 @.***> 于2023年7月18日周二 11:00写道:

(yolox_obb) @.***:~/opt/YOLOX_OBB$ bash my_exps/train.sh MEF-G ./exps/example/yolox_obb/yolox_s_MFE-G.py 0 0 16 --fp16

activate env yolox_obb

Current dir is /home/zibai/opt/YOLOX_OBB exp is ./exps/example/yolox_obb/yolox_s_MFE-G.py cuda_device is cuda: 0 num_device is 0 batch_size is 16 other args: --fp16 ready train .... Traceback (most recent call last): File "tools/train.py", line 13, in from yolox.core import Trainer, launch File "/home/zibai/opt/YOLOX_OBB/yolox/init.py", line 4, in from .utils import configure_module File "/home/zibai/opt/YOLOX_OBB/yolox/utils/init.py", line 6, in from .boxes import File "/home/zibai/opt/YOLOX_OBB/yolox/utils/boxes.py", line 9, in from yolox.ops.pytorch.nms_rotated import multiclass_obb_nms File "/home/zibai/opt/YOLOX_OBB/yolox/ops/init.py", line 1, in from .pytorch import obb_overlaps, multiclass_obb_nms, convex_sort, obb_nms, poly_nms, RoIAlignRotated, RoIAlign File "/home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/init.py", line 4, in from .box_iou_rotated import File "/home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/box_iou_rotated/init.py", line 1, in from .box_iou_rotated_wrapper import obb_overlaps File "/home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/box_iou_rotated/box_iou_rotated_wrapper.py", line 4, in from . import box_iou_rotated_ext ImportError: /home/zibai/opt/YOLOX_OBB/yolox/ops/pytorch/box_iou_rotated/ box_iou_rotated_ext.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN3c104impl8GPUTrace13gpuTraceStateE /home/zibai

— Reply to this email directly, view it on GitHub https://github.com/DDGRCF/YOLOX_OBB/issues/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFM3ADQRCPTRLHSINMO253XQX35TANCNFSM6AAAAAA2NX22F4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

zibai4991 commented 1 year ago

Thank you for your reply。 I compiled the source code on other machine and then copy this code to current machine , recompiled and installed it , This error occurred . I pulled the source code, compiled and installed it,This problem has already been solved。

DDGRCF commented 1 year ago

when you try to recompiled and installed the repo in a new machine, you'd better to delete the build file in the repo.

zibai4991 @.***> 于2023年7月19日周三 08:58写道:

Thank you for your reply。 I compiled the source code on other machine and then copy this code to current machine , recompiled and installed it , This error occurred . I pulled the source code, compiled and installed it,This problem has already been solved。

— Reply to this email directly, view it on GitHub https://github.com/DDGRCF/YOLOX_OBB/issues/41#issuecomment-1641214980, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFM3AFBXR6FOC7CXLQFX4TXQ4WK5ANCNFSM6AAAAAA2NX22F4 . You are receiving this because you commented.Message ID: @.***>