You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I converted the the torch model (magface_epoch_00025.pth) to onnx (magface_epoch_00025.onnx) and used in opencv but the extracted embedding does not match with that of torch version. What am I doing woring?
I converted the pre-trained model to onnx model using the following code:
onnx_model_path = 'magface_epoch_00025.onnx'
# Create some sample input in the shape this model expects
# This is needed because the conversion forward pass the network once
dummy_input = torch.randn(1, 3, 112, 112, device='cuda')
torch.onnx.export(model.module, dummy_input, onnx_model_path, verbose=True)
I then try to use it in opencv dnn with the following code:
I converted the the torch model (magface_epoch_00025.pth) to onnx (magface_epoch_00025.onnx) and used in opencv but the extracted embedding does not match with that of torch version. What am I doing woring?
I converted the pre-trained model to onnx model using the following code:
I then try to use it in opencv dnn with the following code:
The text was updated successfully, but these errors were encountered: