alessandro-nori / crypto_nn

Proof of concept for CryptoDL made for BigSec course @ EURECOM
19 stars 3 forks source link

Example weights file #1

Open moomoo11694 opened 5 years ago

moomoo11694 commented 5 years ago

Hi, Quick question- I was wondering what dataset/weights file you were using to run your specific implementation? Is it possible for you to upload them as well to see how this runs after compilation? Thanks!

Qadir296 commented 5 years ago

Hello, i had install HElib, GMP and NTL all of these libraries also copy the required files in include and lib folder. Now i am using command make in terminal in crypto_nn directory there shows some error like src/main.cpp not found..if you can kindly upload all the details of the code. it will be so kind of you.Thank you.

alessandro-nori commented 5 years ago

Hi, Quick question- I was wondering what dataset/weights file you were using to run your specific implementation? Is it possible for you to upload them as well to see how this runs after compilation? Thanks!

Sorry for the late answer. I uploaded an example of weights for the 'TwoLayerNet' and an example of test set

Qadir296 commented 5 years ago

Its ok i didn't enter any weights files though but the way you had mentioned in the document that copy the files and then MAKE in crypto_nn directory i was doing that and i the error was "No make file found". from where should i add dataset? will be waiting for your response

On Tue, May 14, 2019 at 7:53 PM Alessandro Nori notifications@github.com wrote:

Hi, Quick question- I was wondering what dataset/weights file you were using to run your specific implementation? Is it possible for you to upload them as well to see how this runs after compilation? Thanks!

Sorry for the late answer. I uploaded an example of weights for the 'TwoLayerNet' and an example of test set

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ironela/crypto_nn/issues/1?email_source=notifications&email_token=AKSKPT4ETCSLCEL4NSZFGFDPVLG5NA5CNFSM4G2KQLN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVLXVJQ#issuecomment-492272294, or mute the thread https://github.com/notifications/unsubscribe-auth/AKSKPT7A32NBIRAGUGDBW2LPVLG5NANCNFSM4G2KQLNQ .

-- Regards,

Abdul Qadir Khan MS - Information Security || COMSATS || Islamabad Phone : +92-335-9640949 Email : Khanqadir296@gmail.com khanqadir296@gmail.com FA18-RIS-001@student.comsats.edu.pk

alessandro-nori commented 5 years ago

You should run 'make' in the same directory of Makefile

Qadir296 commented 5 years ago

in 'lib' folder i paste the FHE.lib file and the header files in the 'include'folder now i had done that the i make in the same directory but same error

On Tue, May 14, 2019 at 9:57 PM Alessandro Nori notifications@github.com wrote:

You should run 'make' in the same directory of Makefile

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ironela/crypto_nn/issues/1?email_source=notifications&email_token=AKSKPT6BQFX7O2L65ZMRXC3PVLVPZA5CNFSM4G2KQLN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVMDWTA#issuecomment-492321612, or mute the thread https://github.com/notifications/unsubscribe-auth/AKSKPT6AOOQVSY4FCSMQVQ3PVLVPZANCNFSM4G2KQLNQ .

-- Regards,

Abdul Qadir Khan MS - Information Security || COMSATS || Islamabad Phone : +92-335-9640949 Email : Khanqadir296@gmail.com khanqadir296@gmail.com FA18-RIS-001@student.comsats.edu.pk

Huelse commented 4 years ago

src/layer.cpp:20:34: error: invalid initialization of reference of type ‘const DoubleCRT&’ from expression of type ‘long int’ How to solve this problem?

alessandro-nori commented 4 years ago

src/layer.cpp:20:34: error: invalid initialization of reference of type ‘const DoubleCRT&’ from expression of type ‘long int’ How to solve this problem?

Are you using my main? If yes, which version of NTL are you using?

Huelse commented 4 years ago

@ironela My system just installed ntl-11.4.1, but I changed the include file <NTL/.h> to "../NTL/include/.h" which is NTL-11.3.0 from the HElib compiled.

alessandro-nori commented 4 years ago

It seems that 'Ctxt::addConstant()' function in HELib changed and the internally called 'DoubleCRT()' constructor too. Now I cannot figure out why exactly it isn't working anymore because the constructor arguments are the same. You should play with to_ZZX() function to understand if it really transforms that long int into a ZZX object