CryptoNets icon indicating copy to clipboard operation
CryptoNets copied to clipboard

CifarCryptoNet Data Processing

Open ekarabu opened this issue 5 years ago • 0 comments

I have followed all instructions in README.md to process cifar-10-batches-bin data set. I am able to get the print result as README.md shows. However, there is no operation is seen when I run the program on the Debug version instead of the Release version.

To be sure, I put some fprintf functions to print the multiplication parameters in evaluater.cpp before creating the SEAL package. After that, I noticed the text file, produced for fprintf, exists when I run NeuralNetworksTest and HE Wrapper Tests with Visual Studio. Nevertheless, I cannot see the text file when I follow the DataPreprocess.exe and .\CifarCryptoNets.exe -v commands. Also, results are always the same given by:

Destructor 0 Encryption 0 Plain 0 Decryption 0 Multiplication 0 PlainMultiplication 0 Addition 0 Dispose 0 PlainAddition 0 Subtraction 0 PlainSubtraction 0 Rotation 0 AddMany 0 AddManyItemCount 0 Relinarization 0

These are some output from Release mode:

errs 33/160 accuracy 79.375% prediction 4 label 4 Inference-Time 43.87ms 2^76.939503250388 largest-value errs 33/161 accuracy 79.503% prediction 2 label 2 Inference-Time 43.86ms 2^76.939503250388 largest-value errs 33/162 accuracy 79.630% prediction 1 label 1 Inference-Time 44.22ms 2^76.939503250388 largest-value errs 33/163 accuracy 79.755% prediction 6 label 6 Inference-Time 44.22ms 2^76.939503250388 largest-value errs 33/164 accuracy 79.878% prediction 6 label 6 Inference-Time 44.22ms 2^76.939503250388 largest-value errs 34/165 accuracy 79.394% prediction 0 label 8 Inference-Time 44.22ms 2^76.939503250388 largest-value errs 34/166 accuracy 79.518% prediction 4 label 4 Inference-Time 44.22ms 2^76.939503250388 largest-value

Thanks,

ekarabu avatar Apr 16 '20 22:04 ekarabu