delta.config.Config¶
- class delta.config.Config(presets, models, model_file_rois, model_file_seg, model_file_track, target_size_rois, target_size_seg, target_size_track, training_set_rois, training_set_seg, training_set_track, eval_movie, rotation_correction, drift_correction, whole_frame_drift, crop_windows, min_roi_area, min_cell_area, memory_growth_limit, pipeline_seg_batch, pipeline_track_batch, pipeline_chunk_size, number_of_cores, tolerable_resizing_rois)[source]¶
Configuration class containing DeLTA parameters.
- __init__(presets, models, model_file_rois, model_file_seg, model_file_track, target_size_rois, target_size_seg, target_size_track, training_set_rois, training_set_seg, training_set_track, eval_movie, rotation_correction, drift_correction, whole_frame_drift, crop_windows, min_roi_area, min_cell_area, memory_growth_limit, pipeline_seg_batch, pipeline_track_batch, pipeline_chunk_size, number_of_cores, tolerable_resizing_rois)[source]¶
Methods
__init__(presets, models, model_file_rois, ...)apply_backend_config()Apply backend-relevant parts of the config object.
compare(other[, level])Return or print the list of differences between two Config objects.
default(presets)Return the default config for this preset.
demo_movie_path()Return the path of the demo movie for the specified presets.
model(model)Return the keras model for the specified preset and model type.
read(path)Read a configuration file.
sanitize()Return a serializable version of the config.
training_set_path(model)Return the path of the training set for the specified model.
update(key, value)Update in place the configuration with the given key and value.
write(path)Write a configuration file.
Attributes
presetsType of analysis: can be '2D' or 'mothermachine'.
modelsWhich models need to be loaded ('rois', 'seg' or 'track').
model_file_roisPath to the model file for ROI segmentation.
model_file_segPath to the model file for cell segmentation.
model_file_trackPath to the model file for cell tracking.
target_size_roisInput size of the ROI segmentation model.
target_size_segInput size of the cell segmentation model.
target_size_trackInput size of the cell tracking model.
training_set_roisPath to the ROI segmentation training set.
training_set_segPath to the cell segmentation training set.
training_set_trackPath to the cell tracking training set.
eval_moviePath to the evaluation movie.
rotation_correctionWhether or not to correct for image rotation (mothermachine only).
drift_correctionWhether or not to correct for drift over time (mothermachine only).
whole_frame_driftIf correcting for drift, use the entire frame instead of the region above the chambers.
crop_windowsIf True, crop input images into windows of size target_size_seg for segmentation, otherwise resize them.
min_roi_areaMinimum area of detected ROIs in pixels (mothermachine only).
min_cell_areaMinimum area of detected cells in pixels.
memory_growth_limitIf running into OOM issues or having troupble with CuDNN loading, try setting this to a value in MB: 1024, 2048, etc.
pipeline_seg_batchIf running into OOM issues during segmentation with the pipeline, try lowering this value.
pipeline_track_batchIf running into OOM issues during segmentation with the pipeline, try lowering this value.
pipeline_chunk_sizeIf running into OOM issues during segmentation with the pipeline, try lowering this value.
number_of_coresThis will limit the number of cores TensorFlow can use.
tolerable_resizing_roisMaximum tolerable resizing factor of the template for ROI identification.