Open lexuszhi1990 opened 4 years ago
How do you solve this problem? I find this problem too. It can be solved by changing this https://github.com/thepowerfuldeez/facemesh.pytorch/blob/348400fe32c60111a29e9e6891e230c0005ddd8a/facemesh.py#L114 to
x = nn.ConstantPad2d((0, 1, 0, 1), 0)(x)
You are right about the different by 'same' padding in pytorch and tensorflow.
However, the result is still slightly different from original mediapipe output. We need to further looking at the mediapipe source code.
firstly, thanks for your excellent work, but I found torch result is slightly different from the original tflite model:
tensorflow and torch version:
test code:
results:
I think this may caused by the option conv2d("padding=same" ) different from tensorflow, have you fixed this problem or some advise?
thanks!