snwagh / falcon-public

Implementation of protocols in Falcon
89 stars 45 forks source link

Prepare dataset wrong #37

Closed Barry-ljf closed 2 years ago

Barry-ljf commented 2 years ago

hello ,I have put the .csv file into the ~/Downloads/mnist_train/ and ~/Downloads/mnist_test/ . when I bash the run.sh, I cannot generate the right datase and the output file TRAINING_DATA_A is all 0. I don't know where is wrong?

snwagh commented 2 years ago

It might be an issue with the files. Usually, if you pass the script a wrong location (such as a file or folder that doesn't exist), then it will end up loading all zeros.

I think specific to your case, run.sh is expecting the file to be called mnist_train and be located in the folder ~/Downloads/ but you're actual path to the files is ~/Downloads/mnist_train/<name of training file>. That might be the issue, can you try moving the files appropriately (both train and test) and see if it works?

Barry-ljf commented 2 years ago

very thanks! I have solved this problem.