50 Commits

Author SHA1 Message Date
drCathieSo.eth
c82b3072d7 Update package version to 2.3.0 2024-02-05 01:34:19 +08:00
drCathieSo.eth
526da93d40 Add MaxPooling2Dsame and MaxPooling2Dsame_stride test circuits and their dependencies 2024-02-05 01:33:50 +08:00
drCathieSo.eth
cdb3a290e5 Update version to 2.2.0 in package-lock.json and package.json 2024-02-04 14:36:10 +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
drCathieSo.eth
3c60d84d73 Update README and add LeakyReLU circuit and test 2024-02-03 22:47:27 +08:00
drCathieSo.eth
b056c47b75 version 2.1.0 2023-11-26 19:04:02 +08:00
drCathieSo.eth
85a76f2e00 chore: delete lowercase duplicates 2023-11-26 19:03:14 +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
09b0949569 build: Update package.json version to 2.0.1 2023-10-24 03:01:27 +07: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
5878c5973e chore: remove logging in circuits 2023-10-13 00:10:52 +08: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
MisakaCenter
21372d29d6 IsPositive() treats zero as a positive number (#3)
* Add comments on IsPositive()

IsPositive() treats zero as a positive number for better performance.

* Add a little note about `IsPositive()`
2023-04-13 22:21:23 +09:00
Cathie So
e49c9be3d5 Revert "fix: scaledInv -> scaledInvPoolSize for consistency"
This reverts commit 2819ea09a2.
2023-02-01 22:52:29 +08:00
Cathie So
13f11f841e Revert "v1.4.5"
This reverts commit 4a7ae3e627.
2023-02-01 22:52:22 +08:00
Cathie So
4a7ae3e627 v1.4.5 2023-02-01 21:58:11 +08:00
Cathie So
2819ea09a2 fix: scaledInv -> scaledInvPoolSize for consistency 2023-02-01 21:57:13 +08:00
Cathie So
ada56b950c v1.4.4 2022-12-13 15:56:52 +08:00
Cathie So
6bb4da79cd Global...Pooling2D layers 2022-12-12 02:53:50 +08:00
Cathie So
538277887f add keras2circom as submodule 2022-12-12 00:53:36 +08:00
Cathie So
b7a3849d48 update all model tests to measure precision 2022-12-11 02:12:51 +08:00
drCathieSo.eth
5f6b70d264 Delete test.yml 2022-12-11 01:21:02 +08:00
drCathieSo.eth
7ef17a9032 Create test.yml 2022-12-11 01:19:04 +08:00
Cathie So
05bf4645d0 update tests 2022-12-09 12:16:13 +08:00
Cathie So
0a0c3a710f v1.4.3 - updated README and comments 2022-12-04 23:21:52 +08:00
Cathie So
e9ae3a3900 v1.4.2 npm audit fix 2022-12-03 23:42:33 +08:00
Cathie So
70ce72191b v1.4.1 pragma fix, tested w/ latest circom+snarkjs 2022-12-03 21:13:47 +08:00
Cathie So
6c36e090a8 v1.4.0 2022-12-03 16:20:49 +08:00
Cathie So
184c90599f model encrypt test, "optimized" --> "precision" 2022-12-03 15:37:53 +08:00
Cathie So
822c271259 Encrypt/decrypt multiple, Flatten2D into models 2022-11-30 00:04:30 +08:00
Cathie So
444c98dc1b encrypt/decrypt tests 2022-11-25 23:45:02 +08:00
Cathie So
ce02b10055 keypair generation circuit and test 2022-11-25 20:52:22 +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
0a93f87abc v1.2.1 - patched circom 2.0.5 compatibility 2022-06-26 23:00:37 +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
8eeb665d27 ver 1.0.2 - fixed dependencies 2022-05-14 22:05:23 +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