Giter Club home page Giter Club logo

Comments (5)

SJTUzhanglj avatar SJTUzhanglj commented on August 19, 2024

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.

ijkguo avatar ijkguo commented on August 19, 2024

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.

SJTUzhanglj avatar SJTUzhanglj commented on August 19, 2024

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.

ijkguo avatar ijkguo commented on August 19, 2024

Check the source file at https://github.com/precedenceguo/mxnet/blob/detection/python/mxnet/model.py. The additional parameters are there.

from mx-rcnn.

SJTUzhanglj avatar SJTUzhanglj commented on August 19, 2024

Thank you for solving my problem @precedenceguo

from mx-rcnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.