-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
[<ipython-input-4-8cf3f7790e3f>](https://localhost:8080/#) in <cell line: 0>()
8 pylab.rcParams['figure.figsize'] = 20, 12
9 from maskrcnn_benchmark.config import cfg
---> 10 from maskrcnn_benchmark.engine.predictor_glip import GLIPDemo
11
12 def load(url):
6 frames
[/content/GLIP/maskrcnn_benchmark/engine/predictor_glip.py](https://localhost:8080/#) in <module>
9 from torchvision import transforms as T
10
---> 11 from maskrcnn_benchmark.modeling.detector import build_detection_model
12 from maskrcnn_benchmark.utils.checkpoint import DetectronCheckpointer
13 from maskrcnn_benchmark.structures.image_list import to_image_list
[/content/GLIP/maskrcnn_benchmark/modeling/detector/__init__.py](https://localhost:8080/#) in <module>
----> 1 from .generalized_rcnn import GeneralizedRCNN
2 from .generalized_vl_rcnn import GeneralizedVLRCNN
3
4 _DETECTION_META_ARCHITECTURES = {"GeneralizedRCNN": GeneralizedRCNN,
5 "GeneralizedVLRCNN": GeneralizedVLRCNN
[/content/GLIP/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py](https://localhost:8080/#) in <module>
9 from maskrcnn_benchmark.structures.image_list import to_image_list
10
---> 11 from ..backbone import build_backbone
12 from ..rpn import build_rpn
13 from ..roi_heads import build_roi_heads
[/content/GLIP/maskrcnn_benchmark/modeling/backbone/__init__.py](https://localhost:8080/#) in <module>
4
5 from maskrcnn_benchmark.modeling import registry
----> 6 from maskrcnn_benchmark.modeling.make_layers import conv_with_kaiming_uniform
7 from maskrcnn_benchmark.layers import DropBlock2D, DyHead
8 from . import fpn as fpn_module
[/content/GLIP/maskrcnn_benchmark/modeling/make_layers.py](https://localhost:8080/#) in <module>
8 from torch.nn import functional as F
9 from maskrcnn_benchmark.config import cfg
---> 10 from maskrcnn_benchmark.layers import Conv2d, DYReLU
11 from maskrcnn_benchmark.modeling.poolers import Pooler
12
[/content/GLIP/maskrcnn_benchmark/layers/__init__.py](https://localhost:8080/#) in <module>
8 from .misc import interpolate
9 from .misc import Scale
---> 10 from .nms import nms
11 from .nms import ml_nms
12 from .nms import soft_nms
[/content/GLIP/maskrcnn_benchmark/layers/nms.py](https://localhost:8080/#) in <module>
1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
----> 2 from maskrcnn_benchmark import _C
3
4 try:
5 import torchvision
ImportError: cannot import name '_C' from 'maskrcnn_benchmark' (/content/GLIP/maskrcnn_benchmark/__init__.py)
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
Tried everything
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels