pretrained-models.pytorch icon indicating copy to clipboard operation
pretrained-models.pytorch copied to clipboard

Raising issue in utils

Open Dipeshtamboli opened this issue 6 years ago • 2 comments

It's rasing issue in the from . import utils File "voc.py", line 13, in from . import utils ValueError: Attempted relative import in non-package How to solve this error?

Dipeshtamboli avatar Mar 30 '19 17:03 Dipeshtamboli

Hi @Dipeshtamboli

Sorry for the late answer. It works for me with python 3:

$ python
Python 3.7.2 (default, Dec 29 2018, 06:19:36) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pretrainedmodels
>>> import pretrainedmodels.datasets.voc
>>> pretrainedmodels.datasets.voc
<module 'pretrainedmodels.datasets.voc' from '/home/cadene/doc/pretrained-models.pytorch_2/pretrainedmodels/datasets/voc.py'>
>>> pretrainedmodels.__version__
'0.7.4'

What about you?

Cadene avatar Apr 03 '19 21:04 Cadene

I want a pre-trained model of Pascal VOC dataset for the object classification task. I am not able to find it anywhere. Can you please help me regarding this? Also, I want help in extracting labels from Pascal VOC dataset. Thank you

Dipeshtamboli avatar Apr 04 '19 08:04 Dipeshtamboli