I found the right way
```
from gluoncv import model_zoo, data, utils
from matplotlib import pyplot as plt
net = model_zoo.get_model('yolo3_darknet53_voc', pretrained=True)
my_classes = ['car']
net.reset_class(classes=my_classes, reuse_weights=my_classes)
x = nd.random.uniform(shape=(1, 3, 512, 512))
_ = net(x)
net.export("sample_model")
```
Then, the model can be imported with gluon.nn.SymbolBlock.imports.
Note that the classes parameters won't be available and so you can run an
assignment as
```
imported_model.class = my_classes
```
---
[Visit
Topic](https://discuss.mxnet.apache.org/t/export-and-import-pre-trained-model/6947/2)
or reply to this email to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.mxnet.apache.org/email/unsubscribe/5f69b129fdc58c96a460fe03c697c648181ffe16e1ad91354866ab5d3f284aa6).