You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/31 10:36:37 UTC

[GitHub] TonyTangYu opened a new issue #13058: AttributeError: 'str' object has no attribute 'rank'

TonyTangYu opened a new issue #13058: AttributeError: 'str' object has no attribute 'rank'
URL: https://github.com/apache/incubator-mxnet/issues/13058
 
 
   Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.
   
   For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io 
   
   ## Description
   I run the ssd demo of mxnet from [this](https://github.com/zhreshold/mxnet-ssd). When 
   I run python train.py --gpu 0 --batch-size 32 --lr 0.001 but I get the following problem.  I list all the information needed.
   
   ## Environment info (Required)
   ```
   ----------Python Info----------
   ('Version      :', '2.7.13')
   ('Compiler     :', 'GCC 4.4.7 20120313 (Red Hat 4.4.7-1)')
   ('Build        :', ('default', 'Dec 20 2016 23:09:15'))
   ('Arch         :', ('64bit', 'ELF'))
   ------------Pip Info-----------
   ('Version      :', '9.0.1')
   ('Directory    :', '/THL5/home/daodao/anaconda2/lib/python2.7/site-packages/pip')
   ----------MXNet Info-----------
   ('Version      :', '0.11.0')
   ('Directory    :', '/THL5/home/daodao/softwares/mxnet0.11/python/mxnet')
   Hashtag not found. Not installed from pre-built package.
   
   ```
   
   Package used (Python/R/Scala/Julia):
   I'm using Python2.7.13 and mxnet0.11
   
   
   ## Error Message:
   [18:29:52] src/io/iter_image_det_recordio.cc:280: ImageDetRecordIOParser: /THL5/home/daodao/ty_project/incubator-mxnet-0.11.0/example/ssd/data/train.rec, use 27 threads for decoding..
   [18:29:54] src/io/iter_image_det_recordio.cc:333: ImageDetRecordIOParser: /THL5/home/daodao/ty_project/incubator-mxnet-0.11.0/example/ssd/data/train.rec, label padding width: 350
   [18:29:54] src/engine/threaded_engine_perdevice.cc:253: [added by cxt] engine is created by EnginePerDevice 
   [18:29:54] src/io/iter_image_det_recordio.cc:280: ImageDetRecordIOParser: /THL5/home/daodao/ty_project/incubator-mxnet-0.11.0/example/ssd/data/val.rec, use 27 threads for decoding..
   [18:29:55] src/io/iter_image_det_recordio.cc:333: ImageDetRecordIOParser: /THL5/home/daodao/ty_project/incubator-mxnet-0.11.0/example/ssd/data/val.rec, label padding width: 350
   INFO:root:Start training with (gpu(0)) from pretrained model /THL5/home/daodao/ty_project/incubator-mxnet-0.11.0/example/ssd/model/vgg16_reduced
   [18:29:57] src/nnvm/legacy_json_util.cc:190: Loading symbol saved by previous version v0.8.0. Attempting to upgrade...
   [18:29:57] src/nnvm/legacy_json_util.cc:198: Symbol successfully upgraded!
   INFO:root:Freezed parameters: [conv1_1_weight,conv1_1_bias,conv1_2_weight,conv1_2_bias,conv2_1_weight,conv2_1_bias,conv2_2_weight,conv2_2_bias]
   [18:30:14] src/operator/././cudnn_algoreg-inl.h:112: Running performance tests to find the best convolution algorithm, this can take a while... (setting env variable MXNET_CUDNN_AUTOTUNE_DEFAULT to 0 to disable)
   [18:30:51] src/operator/convolution.cu:119: This convolution is not supported by cudnn, MXNET convolution is applied.
   ff
   Traceback (most recent call last):
     File "train.py", line 151, in <module>
       voc07_metric=args.use_voc07_metric)
     File "/THL5/home/daodao/ty_project/incubator-mxnet-0.11.0/example/ssd/train/train_net.py", line 274, in train_net
       allow_missing=True,
     File "/THL5/home/daodao/softwares/mxnet0.11/python/mxnet/module/base_module.py", line 568, in fit
       rank=kvstore.rank, total_iter=temp_count,
   AttributeError: 'str' object has no attribute 'rank'
   
   ## Minimum reproducible example
   (If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   1. python train.py --gpu 0 --batch-size 32 --lr 0.001
   
   Could someone do me a fovour? I am struck with it for several days. Thank you!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services