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

Error while importing detector on TRAIN_gluon_yolo3_darknet53_coco.ipynb #54

Open
venkatchintha opened this issue Aug 15, 2020 · 1 comment
Labels
dependencies Pull requests that update a dependency file help wanted Extra attention is needed solution added Solution added to the raised issue

Comments

@venkatchintha
Copy link

when i ran import cell I am getting below error.

I tried to install other mxnet version also[ CUDA100=1.4.1]. still getting same error

from detector_prototype import Detector


ImportError Traceback (most recent call last)
in ()
1
----> 2 from detector_prototype import Detector

/content/Monk_Object_Detection/1_gluoncv_finetune/lib/detector_prototype.py in ()
6 import mxnet as mx
7 from mxnet import autograd, gluon
----> 8 import gluoncv as gcv
9 from gluoncv.utils import download, viz
10 import pandas as pd

/usr/local/lib/python3.6/dist-packages/gluoncv/init.py in ()
10 _require_mxnet_version('1.4.0', '2.0.0')
11
---> 12 from . import data
13 from . import model_zoo
14 from . import nn

/usr/local/lib/python3.6/dist-packages/gluoncv/data/init.py in ()
29 from .sampler import SplitSampler, ShuffleSplitSampler
30 from .otb.tracking import OTBTracking
---> 31 from .kitti.kitti_dataset import KITTIRAWDataset, KITTIOdomDataset
32
33 datasets = {

/usr/local/lib/python3.6/dist-packages/gluoncv/data/kitti/init.py in ()
1 # pylint: disable=missing-module-docstring
----> 2 from .kitti_dataset import *
3 from .kitti_utils import *

/usr/local/lib/python3.6/dist-packages/gluoncv/data/kitti/kitti_dataset.py in ()
19
20 from ...utils.filesystem import try_import_skimage
---> 21 from .kitti_utils import generate_depth_map
22 from .mono_dataset import MonoDataset
23

/usr/local/lib/python3.6/dist-packages/gluoncv/data/kitti/kitti_utils.py in ()
10
11 import mxnet as mx
---> 12 from mxnet.util import is_np_array
13
14

ImportError: cannot import name 'is_np_array'


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.

link --- https://github.com/venkatchintha/ObjectDetection/blob/master/TRAIN_gluon_yolo3_darknet53_coco.ipynb

@abhi-kumar
Copy link
Contributor

The issue is with the base library of gluoncv. The latest version of gluoncv has removed is_numpy_array utility. Switch down to gluoncv version 0.5 or 0.4; Mxnet version can be kept the same.

@abhi-kumar abhi-kumar added dependencies Pull requests that update a dependency file help wanted Extra attention is needed solution added Solution added to the raised issue labels Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file help wanted Extra attention is needed solution added Solution added to the raised issue
Projects
None yet
Development

No branches or pull requests

2 participants