Live Demo here. SPOILER !! we do run in the browser :)
- Python 3.9.9
virtualenv -p <python3.9.9> ralph
source ralph/bin/activate
pip install -r requirements.txt
source ralph/bin/activate
cd scripts
bash generate_datasets_from_scratch.sh "https://zenodo.org/record/5832621/files/wasms.zip"
- Train and save the h5 model
python3 minos.py train -b datasets/original_benign.csv -m datasets/original_malign.csv --model model.h5
- Train and save the h5 model and also the onnx model
python3 minos.py train -b datasets/original_benign.csv -m datasets/original_malign.csv --model model.onnx
python3 minos.py predict -i test.wasm
.gihub
: Contains the CI jobs to train and save the models in the artifact storagescripts
: MINOS implementation(minos.py
), the scripts to turn Wasm binaries into 100x100 grayscale images, and the wasm_wrapper to make browser client inference with the already trained model.scripts/wasm_wrapper
: Source of the Wasm wrapping of the model. Make sure you have installed Emscripten, otherwise it wont compile.