Command line¶
zvdvc has one subcommand per pipeline stage, plus data preparation,
comparison, strain, the check suite and the CCPi drop-in. Every stage can be
re-run, and run skips tiles that are already written. zvdvc-dvc is the
same drop-in as zvdvc ccpi, installed under its own name for iDVC
(Using zvDVC from iDVC).
This page is generated from the argument parser, so it matches the installed version.
GPU-based Digital Volume Correlation
usage: zvdvc [-h] [--traceback]
{synth,solve,convert,plan,seed,run,repair,finalize,compare,selftest,strain,check,ccpi}
...
Positional Arguments¶
- command
Possible choices: synth, solve, convert, plan, seed, run, repair, finalize, compare, selftest, strain, check, ccpi
Named Arguments¶
- --traceback
show the full traceback of an error
Default:
False
Sub-commands¶
synth¶
write a synthetic case with a known displacement field
zvdvc synth [-h] --shape Z Y X [--field {rigid,affine,sinusoid,inclusion}]
[--spacing SPACING] [--dtype DTYPE] [--noise NOISE] [--seed SEED]
[--chunk CHUNK] [--shard SHARD] [--geometry {sphere,cube}]
[--subvol-size SUBVOL_SIZE] [--subvol-npts SUBVOL_NPTS]
[--dof {3,6,12}] [--objective {sad,ssd,zssd,nssd,znssd}]
[--disp-max DISP_MAX] --out OUT [--overwrite]
Named Arguments¶
- --shape
- --field
Possible choices: rigid, affine, sinusoid, inclusion
Default:
'affine'- --spacing
Default:
16.0- --dtype
Default:
'uint16'- --noise
Gaussian noise sigma, fraction of full scale (0.02 = 2 %)
Default:
0.0- --seed
Default:
0- --chunk
Default:
128- --shard
Default:
1024- --geometry
Possible choices: sphere, cube
Default:
'sphere'- --subvol-size
Default:
32.0- --subvol-npts
Default:
2000- --dof
Possible choices: 3, 6, 12
Default:
12- --objective
Possible choices: sad, ssd, zssd, nssd, znssd
Default:
'znssd'- --disp-max
Default:
8.0- --out
- --overwrite
replace a case already in –out
Default:
False
solve¶
in-memory single-process solve (numpy reference; whole volumes in memory)
zvdvc solve [-h] [--backend {numpy,cupy,fused,cpu}] [--out OUT] [--disp]
[--quiet]
config
Positional Arguments¶
- config
Named Arguments¶
- --backend
Possible choices: numpy, cupy, fused, cpu
Default:
'numpy'- --out
results .npz (default: <workdir>/results.npz)
- --disp
also write a CCPi .disp next to the results
Default:
False- --quiet
Default:
False
convert¶
convert raw/mhd/npy/tiff to sharded OME-Zarr
zvdvc convert [-h] [--chunk CHUNK] [--shard SHARD] [--shape-xyz X Y Z]
[--dtype DTYPE] [--header HEADER] [--overwrite]
src dst
Positional Arguments¶
- src
- dst
Named Arguments¶
- --chunk
Default:
128- --shard
Default:
1024- --shape-xyz
.raw only: volume size
- --dtype
.raw only: numpy dtype, e.g. ‘<u2’ or ‘u1’
- --header
.raw only: header bytes to skip
Default:
0- --overwrite
replace DST if it exists
Default:
False
plan¶
tiles, bricks, memory check, result store allocation
zvdvc plan [-h] [--backend {fused,cupy,cpu,numpy}] config
Positional Arguments¶
- config
Named Arguments¶
- --backend
Possible choices: fused, cupy, cpu, numpy
compute engine (default: fused with a GPU, else cpu with numba, else numpy)
seed¶
seed field (coarse pass) or wavefront solve
zvdvc seed [-h] [--backend {fused,cupy,cpu,numpy}] config
Positional Arguments¶
- config
Named Arguments¶
- --backend
Possible choices: fused, cupy, cpu, numpy
compute engine (default: fused with a GPU, else cpu with numba, else numpy)
run¶
solve this node’s tiles, one process per GPU
zvdvc run [-h] [--backend {fused,cupy,cpu,numpy}]
[--devices DEVICES [DEVICES ...]] [--cpu-workers CPU_WORKERS]
[--max-tiles MAX_TILES]
config
Positional Arguments¶
- config
Named Arguments¶
- --backend
Possible choices: fused, cupy, cpu, numpy
compute engine (default: fused with a GPU, else cpu with numba, else numpy)
- --devices
GPU ordinals (default: every visible GPU)
- --cpu-workers
CPU backends: worker processes sharing the cores
Default:
1- --max-tiles
solve only the first N tiles (short profiling runs)
repair¶
re-seed and re-solve failed points (not implemented yet: M5)
zvdvc repair [-h] config
Positional Arguments¶
- config
finalize¶
rebuild presence, write metadata and summaries
zvdvc finalize [-h] [--disp] [--pyramid] [--allow-partial] config
Positional Arguments¶
- config
Named Arguments¶
- --disp
also export CCPi .disp
Default:
False- --pyramid
build a zarr-vectors pyramid for viewers
Default:
False- --allow-partial
finalize although cells are unwritten; their points are exported as NOT_SEARCHED
Default:
False
compare¶
accuracy against ground truth or a CCPi .disp
zvdvc compare [-h] results reference
Positional Arguments¶
- results
- reference
truth.npz or .disp
selftest¶
check this installation end to end on a small synthetic case (PASS/FAIL)
zvdvc selftest [-h] [--out OUT] [--backends BACKENDS [BACKENDS ...]]
[--no-ccpi]
Named Arguments¶
- --out
Default:
'runs/selftest'- --backends
default: every backend available here
- --no-ccpi
skip the CCPi dvc comparison
Default:
False
strain¶
strain from displacements (CCPi strain’s method and CSV layout, with uncertainty)
zvdvc strain [-h] [--window WINDOW] [--threshold THRESHOLD] [--refill]
[--engineering] [--engineering-only] [--gradient]
[--sigma-u SIGMA_U] [--out OUT]
results
Positional Arguments¶
- results
results store, zvDVC .npz, or CCPi .disp
Named Arguments¶
- --window, -sw
points in each strain window (CCPi -sw)
Default:
25- --threshold, -t
objmin threshold for window points (CCPi -t)
Default:
1.0- --refill, -r
replace dropped points with further neighbours (CCPi -r)
Default:
False- --engineering, -E
also write engineering strain (.Estr.csv)
Default:
False- --engineering-only
write engineering strain only
Default:
False- --gradient, -D
also write the displacement gradient (.dgrd.csv)
Default:
False- --sigma-u
displacement uncertainty (voxels) for strain_sd; default: fit residual
- --out
output base name (default: next to RESULTS)
check¶
local check suite: tests, GPU tests, benchmarks, compared with this machine’s baseline
zvdvc check [-h] [--case-a CASE_A] [--cache CACHE] [--machine MACHINE]
[--require-case-a] [--update-baseline] [--reason REASON]
[--ccpi-disp CCPI_DISP]
[{quick,gpu,full}]
Positional Arguments¶
- tier
Possible choices: quick, gpu, full
Default:
'quick'
Named Arguments¶
- --case-a
case A data directory (default $ZVDVC_CASE_A)
- --cache
directory for C-ordered .raw copies (default $ZVDVC_CASE_A_CACHE or runs/case_A)
- --machine
baseline name (default $ZVDVC_MACHINE or the host name)
- --require-case-a
fail when the case A data is missing
Default:
False- --update-baseline
record this run as the machine’s baseline
Default:
False- --reason
why the baseline changes (required with –update-baseline)
Default:
''- --ccpi-disp
CCPi’s .disp for the central grid, recorded in the baseline
ccpi¶
drop-in replacement for CCPi’s dvc <dvc_in> (also installed as zvdvc-dvc)
zvdvc ccpi [-h] [--backend {fused,cupy,cpu,numpy}] dvc_in
Positional Arguments¶
- dvc_in
Named Arguments¶
- --backend
Possible choices: fused, cupy, cpu, numpy
default: $ZVDVC_BACKEND, else fused on a GPU, else cpu