This document preserves the older inference workflow based on super.py and super-list.py.
The script super.py is used to run the trained model on new projections. The script requires a YAML configuration file with the following fields:
model_dir- path to the directory containing the trained modelproj_file- path to the projection fileangle_file- path to the angle filesave_dir- path to the directory where the output will be savedsave_name- name of the output volumedevice- CUDA device id to run the model on (integer, e.g.0; older code also supports a list of ids, e.g.[0, 1])downsample_projections- whether to downsample the projectionsdownsample_factor- factor by which to downsample the volumeanti_alias- whether to apply anti-aliasing to the projectionsN3- size of the volume along the z-axisbatch_size- batch size to use when running the model
Run the script:
python3 super.py --config <path_to_config_file>A sample YAML file is provided as docs/ribo80.yaml.
Download the ribosome dataset:
bash download_ribosome.shThis places data in the data directory. The dataset includes:
projections.mrcs- the projectionsangles.tlt- the angles
To run:
python3 super.py --config docs/ribo80.yamlpython3 super.py --config docs/ribo80_wavelet.yamlUse super-list.py with docs/ribo80_list.yaml. You can set multiple values for:
proj_file- list of projection pathsangle_file- list of angle pathssave_name- list of output namesN3- list of z-axis sizes
Run:
python3 super-list.py --config docs/ribo80_list.yamlbash download_old.sh