Unable to export model

Hi all

i wish to export the pretrained gluoncv model to its json and params but unable to do so. i tried the example in the https://gluon-cv.mxnet.io/build/examples_deployment/export_network.html
which i have no issue. But when i tried:

net = gcv.model_zoo.get_model(‘i3d_resnet50_v1_hmdb51’, pretrained=True)
export_block(’./model’,‘i3d_resnet50_v1_hmdb51’, net)

it doesn’t work and output errors:
ValueError: Children of HybridBlock must also be HybridBlock, but i3d_resnet50_v1_hmdb51 has type <class ‘str’>. If you are using Sequential, please try HybridSequential instead.

You don’t need your first argument. If you’re trying to save it in a folder called model/ then you should use this instead:

export_block("./model/i3d_resnet50_v1_hmdb51", net)

The reason you’re getting the error is that you’re passing the filepath name in the second argument which should be the network/model itself: https://gluon-cv.mxnet.io/api/utils.html#gluoncv.utils.export_block