24 Commits

Author SHA1 Message Date
drCathieSo.eth
526da93d40 Add MaxPooling2Dsame and MaxPooling2Dsame_stride test circuits and their dependencies 2024-02-05 01:33:50 +08:00
drCathieSo.eth
5713443fb1 Add Conv2Dsame and Conv2Dsame_stride test circuits and Conv2Dsame.circom 2024-02-04 01:31:22 +08:00
drCathieSo.eth
1b49b9bbac Add Reshape2D circuit and test files 2024-02-04 00:16:53 +08:00
drCathieSo.eth
b4f582b632 Add UpSampling2D circuit and test files 2024-02-03 23:56:58 +08:00
Semar Augusto
418917338a Add separable convolution circuit implementation (#7)
* add circuits and tests for separable convolution. Circuits do not yet comply with repo`s quantization

* make depthwise circuit compliant with quantization method from repo

* make pointwise circuit compliant with quantization method from repo

* separable convolution test works

* clean up

* fix typos and skip failing test

* clean up duplicated code for depthwise conv

* clean up duplicated code for pointwise conv

* clean up duplicated code for separable conv notebook

* chore: update filename to capital case

---------

Co-authored-by: drCathieSo.eth <socathie@users.noreply.github.com>
2023-11-26 18:53:14 +08:00
drCathieSo.eth
30a43a2712 Version 2.0.0 (#5)
* feat: `Poly` renamed to `ZeLU` with scaling implemented

* fix: assertion in `ZeLU`

* feat: `AveragePooling2D` with scaling

* feat: `BatchNorm` with scaling

* feat: `Conv1D` with scaling

* feat: `Conv2D` with scaling

* feat: `Dense` with scaling

* fix: assertion in `Dense`

* feat: `GlobalAveragePooling2D` with scaling

* feat: input-only `ArgMax`

* feat: input-only `Flatten2D`

* feat: input-only `GlobalMaxPooling2D`

* feat: input-only `MaxPooling2D`

* feat: input-only `ReLU`

* test: precision up to 36 decimals

* chore: clean up

* test: model1 with 36 decimals

* fix: ReLU should use `p//2` as threshold

* test: clean up

* test: mnist model with 18 decimals

* build: Update package.json version to 2.0.0

* chore: Update README with warning message
2023-10-24 02:50:34 +07:00
drCathieSo.eth
aa1a7a53ab feat: Zigmoid and Zanh 2023-10-12 14:45:44 +08:00
drCathieSo.eth
51df8e92b0 feat: Zigmoid activation 2023-10-10 23:33:46 +08:00
Cathie So
6bb4da79cd Global...Pooling2D layers 2022-12-12 02:53:50 +08:00
Cathie So
b7a3849d48 update all model tests to measure precision 2022-12-11 02:12:51 +08:00
Cathie So
184c90599f model encrypt test, "optimized" --> "precision" 2022-12-03 15:37:53 +08:00
Cathie So
56f7b25c08 Model optimized for precision w/ proof size tradeoff 2022-11-18 23:39:42 +08:00
Cathie So
2806c81b3d Latest MNIST model with AvgPooling2D and BN 2022-11-18 21:38:41 +08:00
Cathie So
b95a34e2ac MaxPooling2D layer notebook update 2022-11-18 18:46:47 +08:00
Cathie So
dc873b5961 MaxPooling2D layer 2022-11-18 18:45:39 +08:00
Cathie So
a17cc6f145 AveragePooling2D layer 2022-11-18 16:51:32 +08:00
Cathie So
9c51c60bbf BatchNormalization2D layer 2022-11-12 20:42:10 +08:00
Cathie So
0ab4025c14 SumPooling2D with strides 2022-11-11 20:38:33 +08:00
Cathie So
6c0254308f Flatten2D layer 2022-11-11 20:13:47 +08:00
Cathie So
adb9eddff0 v1.3.0 - added Conv1D layer, added strides compatibility to Conv2D 2022-06-28 01:04:19 +08:00
Cathie So
8b339b41f8 v1.2.0 - Added SumPooling2D layer, added high accuracy (98%+) model for MNIST 2022-06-25 23:49:13 +08:00
Cathie So
52e9350681 Ver 1.1.0 - Added Polynomial activation layer and test case, updated ArgMax to support up to 254 bits, updated README 2022-06-03 00:00:16 +08:00
Cathie So
8cab60abb3 ver 1.0.1 - restructured ReLU, added ArgMax from zk-mnist, mnist test case 2022-05-14 21:33:01 +08:00
Cathie So
85681b78c1 version 1.0.0 2022-05-12 01:59:57 +08:00