Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCI_OT outputs not matching #208

Open
anmolbhatia05 opened this issue Feb 21, 2024 · 1 comment
Open

SCI_OT outputs not matching #208

anmolbhatia05 opened this issue Feb 21, 2024 · 1 comment

Comments

@anmolbhatia05
Copy link

I am following the steps mentioned here - https://github.com/bhatuzdaname/cryptflow-demo (also mentioned here - https://pratik-bhatu.medium.com/privacy-preserving-machine-learning-for-healthcare-using-cryptflow-cc6c379fbab7)

However, I get Output mismatch instead of Arrays matched upto 1 decimal points.

My config.json is the same as given in the cryptflow-demo repository -

{
  "model_name": "model.pb",
  "input_tensors": { "Placeholder" : "1,224,224,3"},
  "target": "SCI",
  "scale": 12,
  "output_tensors": [ "fc/fc"]
}

The output that my client sees is as follows -

Screenshot 2024-02-21 at 13 09 27

I am not sure what is going wrong...

@VerkuijlKim
Copy link

I am having the same issue unfortunately. For scale 12 I also get:

Output mismatch
tensorflow_output.npy : [ 6.90567 -4.355782 -18.939846]
output_output.npy : [5.36870909e+08 5.36870898e+08 5.36870903e+08]

And for scale 20 that they use in the Medium article:

Output mismatch
tensorflow_output.npy : [ 6.90567 -4.355782 -18.939846]
output_output.npy : [0.94352341 0.68226719 0.90837574]

Did you eventually solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants