Closed emmataobao closed 2 years ago
Actually, I found the difference is at the last bits of each element, for example: "0.021529437974095345" and "0.0215294249355793", " it is the same with the previous 7 bits "0.0215294", and the remaining is different.
I think this may be the difference between different OS and different python version.
@filip-halt Could you help to have a look too? Thanks.
@emmataobao Can you check what is your output dtype? I've checked this pipeline and its output has dtype=float32. But according to your results, it looks like your dtype is about float64. If so, then the extra floats expanded are not precise.
The results that you see are normal and are a result of inaccuracies in floating point math. Do you need the vectors to be entirely identical between the two? If you want to check for equality, you should be able to use numpy.isclose
.
Thank you
Is there an existing issue for this?
Current Behavior
model towhee/image-embedding-regnetx-016 path photo/202008/13/mapp202008130105517751.jpg Windows 10 python 3.9 towhee 0.5.1 vector centos 7 python 3.7 towhee 0.5.1
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
No response