I use mxnet on [insightface](https://github.com/deepinsight/insightface) to 
extract features.

The output of the model is a feature, but insightface sets the label for 
forward().

> db = mx.io.DataBatch(data=(_data,), label=(_label,))
> model.forward(db, is_train=False)

and did not enter a label when loading the model.
> model.bind(data_shapes=[('data', (args.batch_size, 3, image_size[0], 
> image_size[1]))])

https://github.com/deepinsight/insightface/blob/836db1b89677b566fe80575e6b694079b3c6f299/src/eval/verification.py#L229

I don't think you should enter a label in the feature extraction to avoid 
errors.





---
[Visit 
Topic](https://discuss.mxnet.io/t/do-i-need-to-give-the-label-in-the-forward/6559/1)
 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/6c4ad9fdb4d205547925a4475f39676ba229388c9ac091f9e02fff295e7bef80).

Reply via email to