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

Model and dataset replacement for "EzPC/SIRNN" #154

Open
zwxandy opened this issue Dec 12, 2022 · 1 comment
Open

Model and dataset replacement for "EzPC/SIRNN" #154

zwxandy opened this issue Dec 12, 2022 · 1 comment

Comments

@zwxandy
Copy link

zwxandy commented Dec 12, 2022

Hi, I am very interested in SiRNN, but I have difficulties in replacing RNN model and Google-30 dataset with CNN model and CIFAR-10 dataset. I note that the input and weight in "EzPC/SIRNN" are all in the format of "*.npz", but this seems not so friendly to a pre-trained CNN model and CIFAR-10 dataset.

I still have no idea of solving this problem. If anyone can help me with this problem, I would appreciate it very much! Thanks a lot!

@xingpz2008
Copy link

As far as I know, all parameters and input data in the repo are processed and stored with the format of Numpy Array by fixed-point encoding scheme.

If you want to use your own data for secure inference, there are two approaches available:

  1. Convert the network via Athos and get the generated .ezpc file, as I mentioned in another issue by you. This file is protocol-independent and can be further implemented with any valid protocol series. (Note that the final output of Athos might implement protocols from CryptFlow2 by default, and you have to use the intermediate .ezpc file with new EzPC compile command)

  2. You can manually use scripts under Athos folder. One of the scripts is responsible for data conversion. This procedure is network-independent, usually used for input data conversion. If you want to convert network parameters, call Athos and get the input data with .inp postfix.

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