Requires manual download. Please follow instructions here: https://www.tensorflow.org/datasets/catalog/imagenet2012_subset
Eventually, you would have a prepared dataset in ~/datasets/tf-record.
- Install Docker
- Run the
tensorflow/tensorflow:2.11.0-jupyterimage and mount the VeriSplit directory- use
--network="host"to run the Jupyter Notebook from a VM - use
-it --entrypoint /bin/bashto get a shell instead - you can mount the VeriSplit directory and cd to it directly using something like
docker run -it --entrypoint /bin/bash --network="host" --rm -v ~/VeriSplit:/VeriSplit -v ~/datasets:/root/datasets -w /VeriSplit tensorflow/tensorflow:2.11.0-jupyter
- use
- Run
./bin/docker-setup.sh
- Run
./bin/setup.sh - Run
./bin/compile_protobuf_schema.sh - Run
pip install -e .to install all requirements
To make sure everything works, run the following command
python verifier.py --config=config/verifier.py --config.offload=False --config.verify.enable=False --config.data.batch_size=4 --config.data.sample=4By default, we disable data collection of evaluation results. If you want to enable it, you need to configure the backend database properly (e.g., setting up a MySQL host) and configure Verisplit in the following steps:
mv dbify_config ~/.dbify_config
vim ~/.dbify_config # Set up the correct username, password, and MySQL database address After you edit the file with correct credentials, you can run the programs with the flag:
python [verifier.py/worker.py] <options and configs> --config.store_eval_results.enable=TrueWorker: python worker.py --config=config/worker.py --config.port=15316
Verifier: python verifier.py --config=config/verifier.py --config.worker.ips=127.0.0.1 --config.worker.ports=15316 --config.offload=True --config.verify.enable=False --config.data.batch_size=4 --config.data.sample=4
Verifier: python verifier.py --config=config/verifier.py --config.worker.ips=127.0.0.1,127.0.0.1 --config.worker.ports=15316,15330 --config.offload=True --config.verify.enable=False --config.data.batch_size=4 --config.data.sample=4