Command-line InterVass¶
The following is a list of the sub-commands contained in creVass’s CLI tool.
surround¶
init¶
Initialize a new Surround project.
run¶
Run a Surround project assembler and task.
Without any arguments, all tasks will be listed.
Assemblers are defined in the __main__.py file of the current project. The default assembler that comes
with every project is called baseline.
Tasks are defined in the dodo.py file of the current project. Each project comes with a set of default tasks listed below.
Containerised Tasks:
build- Build a Docker image for your Surround project.dev- Run the specified assembler in a Docker container with the current source code (via drive mount, no build neccessary).prod- Build the Docker image and run the specified assembler inside a container (no drive mounting).batch- Run the specified assembler in a Docker container (mountinginputandoutputfolders) set to batch mode.train- Run the specified assembler in a Docker container (mountinginputandoutputfolders) set to train mode.web- Serve the specified assembler via HTTP endpoints inside a Docker container.remove- Remove the Docker image built for this project (if any).jupyter- Run a jupyter notebook server in a Docker container (mounting the whole project).
Local Tasks:
batchLocal- Run the specified assembler locally set to batch-predict mode.trainLocal- Run the specified assembler locally set to train mode.webLocal- Serve the specified assembler via HTTP endpoints locally.
lint¶
Run Pylint across the entire project, using rules defined by Surround.
split¶
Tool to randomly split data into test, train, and validation sets.
Supports splitting:
Directory of files
CSV files
Text files (just ensure you use the
--no-headerflag)
Example - Split a directory of images into train/test/validate:
$ surround split -d images -e png
Example - Reset a split directory:
$ surround spit --reset images
Example - Splitting and resetting a CSV file:
$ surround split -t test.csv
$ surround split --reset .