Closed aldhosutra closed 3 months ago
Hey, I managed to find the solution.
It turns out I need to first create output.json
by running circuit.py
, then merge circuit.json
, output.json
, and the input data under the key "in" to create input.json
Thanks for this amazing work, I'm closing this now
Hey, I’m new to zkML. I want to try compiling my Keras model into Circom, and I found this repository. Great work!
I’ve successfully obtained
circuit.circom
,circuit.json
,circuit.wasm
, andgenerate_witness.js
. However, I’m now struggling with creating the witness because I don’t understand whatinput.json
should look like.My model is LeNet-5, with the following configuration:
I assumed that I should merge your
circom.json
with"in"
as the input, so I did:But when I generate the witness using
generate_witness.js
, I get this error:I suspect there might be an issue with the signals in my
input.json
, probably wrong format?. Do you have any clue?Thanks for your response.