Error in official faster rcnn-voc example. hybrid_forward()

Hi,
I am using the https://gluon-cv.mxnet.io/build/examples_detection/demo_faster_rcnn.html script on the voc2007 data.

after the data load, I get the following error while the script reads the train_data:

_File "", line 1, in
runfile('C:/IPA/Projects/trademarkDetection/datasetcreation/frcnn/train_faster_rcnn.py', wdir='C:/IPA/Projects/trademarkDetection/datasetcreation/frcnn', post_mortem=True)

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/IPA/Projects/trademarkDetection/datasetcreation/frcnn/train_faster_rcnn.py", line 527, in
train(net, train_data, val_data, eval_metric, batch_size, ctx, args)

File "C:/IPA/Projects/trademarkDetection/datasetcreation/frcnn/train_faster_rcnn.py", line 429, in train
executor.put(data)

File "C:\ProgramData\Anaconda3\lib\site-packages\gluoncv\utils\parallel.py", line 119, in put
out = self._parallizable.forward_backward(x)

File "C:/IPA/Projects/trademarkDetection/datasetcreation/frcnn/train_faster_rcnn.py", line 287, in forward_backward
box_targets, box_masks, _ = net(data, gt_box, gt_label)

File "C:\ProgramData\Anaconda3\lib\site-packages\mxnet\gluon\block.py", line 540, in  **call**
out = self.forward(*args)

File "C:\ProgramData\Anaconda3\lib\site-packages\mxnet\gluon\block.py", line 907, in forward
return self._call_cached_op(x, *args)

File "C:\ProgramData\Anaconda3\lib\site-packages\mxnet\gluon\block.py", line 797, in _call_cached_op
self._build_cache(*args)

File "C:\ProgramData\Anaconda3\lib\site-packages\mxnet\gluon\block.py", line 749, in _build_cache
data, out = self._get_graph(*args)

File "C:\ProgramData\Anaconda3\lib\site-packages\mxnet\gluon\block.py", line 741, in  <em>get_graph
out = self.hybrid_forward(symbol, *grouped_inputs, **params) # pylint: disable=no-value-for-parameter</em>

**TypeError: hybrid_forward() takes from 3 to 4 positional arguments but 5 were given**

Can someone help me with this?
mxnet version - mxnet-cu92==1.4.1

Try updating to the latest mxmet:

pip install mxnet-cu92==1.5.1

if it still doesn’t work, try:

pip install mxnet-cu92 --pre --upgrade

Thanks Thomas. I tried these but unfortunately I am still getting the same error.

Have you tried updating to the latest gluoncv ?

pip install gluoncv --pre --upgrade ?