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

Can't generate witness in the mnist_classifier.ipynb #759

Open
ArshanKhanifar opened this issue Mar 30, 2024 · 1 comment
Open

Can't generate witness in the mnist_classifier.ipynb #759

ArshanKhanifar opened this issue Mar 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ArshanKhanifar
Copy link

Describe the bug

I'm following along with the mnist_classifier example. I've:

  • trained the model
  • exported as onnx, and generated an input.json
  • generated settings
  • calibrated
  • compiled the circuit

Now I'm generating the witness file and looks like it's expecting a different schema for input.json

    res = ezkl.gen_witness(data_path, compiled_model_path, witness_path)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to run generate witness: missing field `input_data` at line 1 column 16045215

Expected behaviors

Generate witness file

Steps to reproduce the bug

It's a ipynb so it's already got a step by step structure

Device and Operating System

OS:

Linux psrw0q28aigi 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov  2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Device:
Nvidia a100 instance (overkill, I know)

@ArshanKhanifar ArshanKhanifar added the bug Something isn't working label Mar 30, 2024
@alexander-camuto
Copy link
Collaborator

Can you post your input.json file here please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants