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

Hugging Face Demo Runtime Error #44

Open
BobH233 opened this issue Nov 27, 2024 · 0 comments
Open

Hugging Face Demo Runtime Error #44

BobH233 opened this issue Nov 27, 2024 · 0 comments

Comments

@BobH233
Copy link

BobH233 commented Nov 27, 2024

The hugging face online demo: https://huggingface.co/spaces/hamacojr/CAT-Seg, shows the error:

runtime error
Space failed. Exit code: 1. Reason: r, platformdirs, pathspec, omegaconf, mypy-extensions, markdown, grpcio, cloudpickle, absl-py, tensorboard, iopath, hydra-core, black, pycocotools, fvcore, detectron2
Successfully installed absl-py-2.1.0 antlr4-python3-runtime-4.9.3 black-24.4.0 cloudpickle-3.0.0 detectron2-0.6 fvcore-0.1.5.post20221221 grpcio-1.62.2 hydra-core-1.3.2 iopath-0.1.9 markdown-3.6 mypy-extensions-1.0.0 omegaconf-2.3.0 pathspec-0.12.1 platformdirs-4.2.1 portalocker-2.8.2 pycocotools-2.0.7 tabulate-0.9.0 tensorboard-2.16.2 tensorboard-data-server-0.7.2 termcolor-2.4.0 tomli-2.0.1 werkzeug-3.0.2 yacs-0.1.8

[notice] A new release of pip available: 22.3.1 -> 24.0
[notice] To update, run: python -m pip install --upgrade pip
Traceback (most recent call last):
  File "/home/user/app/app.py", line 24, in <module>
    from detectron2.data.detection_utils import read_image
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/data/__init__.py", line 2, in <module>
    from . import transforms  # isort:skip
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/data/transforms/__init__.py", line 6, in <module>
    from .augmentation_impl import *
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/data/transforms/augmentation_impl.py", line 23, in <module>
    from detectron2.structures import Boxes, pairwise_iou
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/structures/__init__.py", line 3, in <module>
    from .image_list import ImageList
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/structures/image_list.py", line 8, in <module>
    from detectron2.layers.wrappers import move_device_like, shapes_to_tensor
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/layers/__init__.py", line 5, in <module>
    from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated
  File "/home/user/.local/lib/python3.10/site-packages/detectron2/layers/nms.py", line 25, in <module>
    @torch.compiler.disable
AttributeError: module 'torch' has no attribute 'compiler'

Could you please update it ?

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

1 participant