You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@mxnet.apache.org by Lews Therin511 via MXNet Forum <mx...@discoursemail.com.INVALID> on 2020/08/18 13:03:59 UTC

[MXNet Forum] [Gluon] Inference with finetuned model - "Please make sure source and target networks have the same prefix" error


Ok, kinda fixed it. Basically, during training I was saving the .params file by using:

    net.export(param_file)

and, as I said, loading them during inference by:

    net.load_parameters(param_file)

It doesn't work this way, but it does if instead of export I use:

    net.save_parameters(param_file)

Why the different behavior, anyway?





---
[Visit Topic](https://discuss.mxnet.io/t/inference-with-finetuned-model-please-make-sure-source-and-target-networks-have-the-same-prefix-error/6520/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.io/email/unsubscribe/44ef5170929d8c605784535ba20ce1b206a2ba964652943d0db6e69a6715e110).