facebookresearch / SlowFast

PySlowFast: video understanding codebase from FAIR for reproducing state-of-the-art video models.
Apache License 2.0
6.62k stars 1.22k forks source link

AttributeError: module 'torch' has no attribute 'compiler' #709

Open Cheng-ZY opened 6 months ago

Cheng-ZY commented 6 months ago

Has anyone encountered this problem?I am very certain that I have installed Torch Traceback (most recent call last): File "/root/SlowFast/slowfast/tools/run_net.py", line 6, in from slowfast.utils.misc import launch_job File "/root/SlowFast/slowfast/slowfast/utils/misc.py", line 21, in from slowfast.datasets.utils import pack_pathway_output File "/root/SlowFast/slowfast/slowfast/datasets/init.py", line 7, in from .imagenet import Imagenet # noqa File "/root/SlowFast/slowfast/slowfast/datasets/imagenet.py", line 15, in from slowfast.models.utils import calc_mvit_feature_geometry File "/root/SlowFast/slowfast/slowfast/models/init.py", line 5, in from .contrastive import ContrastiveModel # noqa File "/root/SlowFast/slowfast/slowfast/models/contrastive.py", line 13, in from slowfast.models.video_model_builder import X3D, MViT, ResNet, SlowFast File "/root/SlowFast/slowfast/slowfast/models/video_model_builder.py", line 26, in from . import head_helper, operators, resnet_helper, stem_helper # noqa File "/root/SlowFast/slowfast/slowfast/models/head_helper.py", line 9, in from detectron2.layers import ROIAlign File "/root/SlowFast/detectron2_repo/detectron2/layers/init.py", line 5, in from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated File "/root/SlowFast/detectron2_repo/detectron2/layers/nms.py", line 25, in @torch.compiler.disable AttributeError: module 'torch' has no attribute 'compiler'

3210448723 commented 6 months ago

https://github.com/facebookresearch/detectron2/issues/5268#issuecomment-2075633467

Cheng-ZY commented 6 months ago

facebookresearch/detectron2#5268 (comment)

多谢老哥,这两天搞这东西快把我逼疯了