Open salvatorebuono02 opened 6 months ago
Can you provide more information on how you run he-man-tenseal
? Are you using the CLI?
Yes, I use the CLI. More specifically these are the steps:
he-man-tenseal keyparams -m demo/mnist/mnist.onnx -c demo/mnist/calibration-data.zip -o demo/mnist/keyparams.json
Should I change something?
he-man-tenseal
is completely agnostic of specific data formats (images, text, audio, ...). We simply load the calibration data using the np.load
function (like .npz files are loaded). Therefore, the ZIP file has to contain numpy arrays in the .npy format. Please check the demo data for further details on the file format.
Now consider that I have pass all my train set (images as numpy array) as calibration_data.zip and I am sure that all images have the same size (88,88). I have problems with keyparams generation and this issue arises:
click.exceptions.ClickException: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (31784,) + inhomogeneous part.
Considering the same configuration in #4 , I have a new error while run step 1 KeyParameters Generation. I pass my input files as single images with torch Dataloader using torch.tensors. Considering that I clone the repository and install all necessary libraries, how can I go on?