http://www.math.uni-bremen.de/cda/software.html
signal transform to produce a stable embedding. The network operates entirely in $\mathbb{C}$ domain to take advantage of unique properties of CVNNs.
Python 3.8.x and newer are supported:
python -m venv venv4coshnet
venv4coshnet\Scripts\activate
source venv4coshnet/bin/activate
setup.txt
docker build -t coshnet-docker:latest .
(Some systems might require running this in `sudo` mode.)code/
: Contains all code essential to run experiments in this repo. libs/
: Contains all custom-made and collected libs and modules we use for our experiments.
(Installed automatically in setup.txt)data/
: Folder where datasets are present. Created automatically when running for first time.setup.txt
: Steps for setting up repo.requirements.txt
: requirements file.changelog.md
: all changes relevant to releases, branch prs,
or any other general notes needed for maintenance.cd code/
. Following are the possible cases:
python test_fashion.py --help
to see several arguments you are allowed to tune. (Default run (10k20E) gets 89.2% on RTX 2080 Super
).
The default will use the 10k test set of Fashion to train for 20 epochs, and the 60k training set to test. python test_resnet.py --help
to see several arguments you are allowed to set. (Default run (RN18, 10k20E) gets 88.3% on RTX 2080 Super
).test_fashion.py
,test_resnet.py
) will not run in (jupyter|google colab
) notebook(s). This is because our code defaults to using `asyncio` for batch generation for speed. Hence, if you absolutely have to run in a notebook, please create your own batch generation code.
docker run coshnet-docker:latest
(Some systems might require running this in `sudo` mode.)Dockerfile
Model | Epochs | Parameters | Size Ratio | Top-1 Accuracy (60k) | Top-1 Accuracy (10k) |
---|---|---|---|---|---|
ResNet-18 | 100 | 11.18M | 229 | 91.8% | 88.3% |
ResNet-50 | 100 | 23.53M | 481 | 90.7% | 87.8% |
CoShNet(base) | 20 | 1.37M | 28 | 92.2% | 89.2% |
CoShNet (tiny) | 20 | 49.99K | 1 | 91.6% | 88.0% |
Note: 60k = train on train-set (60k observations), test on test-set (10k observations). 10k = vice-versa. K or k = 1000, M = Million.
@misc{coshnet2022,
doi = {10.48550/ARXIV.2208.06882},
url = {https://arxiv.org/abs/2208.06882},
author = {Ko, Manny and Panchal, Ujjawal K. and Andrade-Loarca, Héctor and Mendez-Vazquez, Andres},
keywords = {Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {CoShNet: A Hybird Complex Valued Neural Network using Shearlets},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution Non Commercial Share Alike 4.0 International}
}