Comments (5)
I thought you applied distributed training, so the rcnn part is different from the dmlc/mxnet example. But can you provide one without distributed training
from mx-rcnn.
Install a forked MXNet at MXNet-detection. Follow the instructions at http://mxnet.readthedocs.io/en/latest/how_to/build.html. Install the python interface. We are working to use module API and deprecate this fork asap. However right now please try a special fix at this fork.
Note: the fork is at detection branch. Try git checkout detection
.
from mx-rcnn.
I installed the detection branch this time, but a similiar problem happened.
INFO:root:########## TRAIN RPN WITH IMAGENET INIT
voc_2007_trainval gt roidb loaded from F:\mx-rcnn\data\cache\voc_2007_trainval_gt_roidb.pkl
append flipped images to roidb
prepare roidb
providing maximum shape [('data', (1, 3, 1000, 1000))] [('label', (1L, 35721L)), ('bbox_target', (1L, 36L, 63L, 63L)), ('bbox_inside_weight', (1L, 36L, 63L, 63L)), ('bbox_outside_weight', (1L, 36L, 63L, 63L))]
Traceback (most recent call last):
File "D:\Anaconda2\lib\runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "D:\Anaconda2\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "F:\mx-rcnn\tools\train_alternate.py", line 209, in
args.kv_store, args.work_load_list)
File "F:\mx-rcnn\tools\train_alternate.py", line 137, in alternate_train
'model/rpn1', ctx, begin_epoch, rpn_epoch, frequent, kv_store, work_load_list)
File "F:\mx-rcnn\tools\train_alternate.py", line 61, in train_rpn
solver.fit(train_data, frequent=frequent)
File "rcnn\solver.py", line 105, in fit
max_label_shape=max_label_shape)
TypeError: _train_multi_device() got an unexpected keyword argument 'max_label_shape'
And I checked the model.py in mxnet/python/mxnet/model.py and find the function '_train_multi_device' lost one param.
_train_multi_device(self.symbol, self.ctx, arg_names, param_names, aux_names,
self.arg_params, self.aux_params,
begin_epoch=self.begin_epoch, end_epoch=self.num_epoch,
epoch_size=self.epoch_size,
optimizer=optimizer,
train_data=data, eval_data=eval_data,
eval_metric=eval_metric,
epoch_end_callback=epoch_end_callback,
batch_end_callback=batch_end_callback,
kvstore=kvstore, update_on_kvstore=update_on_kvstore,
logger=logger, work_load_list=work_load_list, monitor=monitor,
eval_batch_end_callback=eval_batch_end_callback,
sym_gen=self.sym_gen)
In solver.py, it's
mx.model._train_multi_device(self.symbol, self.ctx, self.arg_names, self.param_names, self.aux_names,
self.arg_params, self.aux_params, self.begin_epoch, self.num_epoch,
epoch_size=None, optimizer=self.optimizer,
kvstore=kvstore, update_on_kvstore=update_on_kvstore,
train_data=train_data, eval_data=None, eval_metric=eval_metrics,
epoch_end_callback=epoch_end_callback, batch_end_callback=batch_end_callback,
logger=logger, work_load_list=None, monitor=None,
mutable_data_shape=mutable_data_shape, max_data_shape=max_data_shape,
max_label_shape=max_label_shape)
Anything Wrong?
from mx-rcnn.
Check the source file at https://github.com/precedenceguo/mxnet/blob/detection/python/mxnet/model.py. The additional parameters are there.
from mx-rcnn.
Thank you for solving my problem @precedenceguo
from mx-rcnn.
Related Issues (20)
- Anchor assignment issues HOT 2
- Unable to detect second object HOT 8
- How to use the branch for training using gluon cv?? HOT 3
- How to use SyncBatchNorm? HOT 3
- How to get the same performance on kitti 2d object detection?
- attempt to get argmax of an empty sequence
- RPNL1Loss problem
- RPN behaved badly.
- rois.asnumpy() very slow
- Would you please share your training log? HOT 1
- Contributions Welcome HOT 1
- ValueError: zero-size array to reduction operation maximum which has no identity HOT 6
- How does C++ call the mxnet fasterrcnn model for detection? HOT 1
- about convert to per class detection results? HOT 2
- Low CPU and GPU utilization
- Can not donwnload the pretrained model resnet-101-0000.params ! HOT 9
- AssertionError: rpn_conv_3x3_weight not initialized HOT 1
- What's the meaning about the shape of "box_deltas": [N, 4 * num_classes]
- Need your help for kitti HOT 1
- can i trained it with cpu? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mx-rcnn.