config_LENS.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # Config file for Stage 4 - Wave Detection
  2. # Name of stage, must be identical with folder name
  3. STAGE_NAME: 'stage04_wave_detection'
  4. # The profile name is the key for this parameter configuration. Results are stored in output_path/<PROFILE>/ (output_path is defined in settings.py)
  5. PROFILE: 'LENS'
  6. # Name of the output file
  7. STAGE_OUTPUT: "waves.nix"
  8. # File format in which all intermediate neo objects are stored
  9. NEO_FORMAT: 'nix'
  10. # If True (default), the output file of a stage is created as symbolic link
  11. # to the last block output. If False, a duplicate is created (e.g. for cloud
  12. # application, where sym-links are not supported).
  13. USE_LINK_AS_STAGE_OUTPUT: True
  14. # Plotting parameters
  15. PLOT_TSTART: 0 # in s
  16. PLOT_TSTOP: 10 # in s
  17. PLOT_CHANNELS: [2008, 1559, 4653] # int or None. default 'None' -> randomly selected
  18. PLOT_FORMAT: 'png'
  19. # DETECTIION BLOCK
  20. ##################
  21. # Available Blocks: 'trigger_clustering'
  22. DETECTION_BLOCK: 'trigger_clustering'
  23. # ADDITIONAL PROPERTIES
  24. #######################
  25. # Available Blocks: 'optical_flow', 'critical_points', 'wave_mode_clustering'
  26. ADDITIONAL_PROPERTIES: ['wave_mode_clustering', 'optical_flow']
  27. # Wavefront Clustering
  28. ######################
  29. # Using sklearn.cluster.DBSCAN
  30. METRIC: 'euclidean'
  31. # eps, maximum distance between points to be neigbours
  32. NEIGHBOUR_DISTANCE: 15
  33. MIN_SAMPLES_PER_WAVE: 88
  34. # Factor from time dimension to space dimension in sampling_rate*spatial_scale
  35. TIME_SPACE_RATIO: 11 # i.e. distance between 2 frames corresponds to X pixel
  36. # Optical Flow (Horn-Schunck algorithm)
  37. ##############
  38. USE_PHASES: True
  39. # weight of the smoothness constraint over the brightness constancy constraint
  40. ALPHA: 1.5
  41. # maximum number of iterations optimizing the vector field
  42. MAX_NITER: 100
  43. # the optimization end either after MAX_NITER iteration or when the
  44. # maximal change between iterations is smaller than the CONVERGENCE_LIMIT
  45. CONVERGENCE_LIMIT: 0.0001
  46. # standard deviations for the Gaussian filter applied on the vector field
  47. # [t_std, x_std, y_std]. (0,0,0) for no filter
  48. GAUSSIAN_SIGMA: [0.5,5.5,5.5]
  49. # Kernel filter to use to calucualte the spatial derivatives.
  50. # simple_3x3, prewitt_3x3, scharr_3x3, sobel_3x3, sobel_5x5, sobel_7x7
  51. DERIVATIVE_KERNEL: 'scharr_3x3'
  52. # Critical Point Clustering
  53. ###########################
  54. # Wave Mode Clustering
  55. ######################
  56. # fraction of channels that need to be involved in a wave to be included
  57. MIN_TRIGGER_FRACTION: 0.5
  58. # number of similar waves to use to extrapolate missing trigger from
  59. NUM_WAVE_NEIGHBOURS: 5
  60. # percentage of wave similarity to keep for the clustering
  61. WAVE_OUTLIER_QUANTILE: 1 #0.95
  62. # number of pca dims to project the trigger patterns onto before clustering
  63. PCA_DIMS: 10
  64. # number of clusters for the kmeans algorithm
  65. NUM_KMEANS_CLUSTER: 4
  66. # grid spacing for the interpolation [0,1]
  67. INTERPOLATION_STEP_SIZE: 2
  68. # smoothing factor (0: no smoothing)
  69. INTERPOLATION_SMOOTHING: 400
  70. # VIDEO SETTINGS
  71. ################
  72. QUALITY: 5 # 0(good) - 31(bad)
  73. SCALE_X: 720
  74. SCALE_Y: 720
  75. FPS: 8
  76. BITRATE: 20M
  77. # displayed sampling rate, the data will be stretched or compressed to.
  78. # If None, the inherent sampling rate is used.
  79. FRAME_RATE: None
  80. # 'gray', 'viridis' (sequential), 'coolwarm' (diverging), 'twilight' (cyclic)
  81. COLORMAP: 'viridis'
  82. PLOT_EVENT: 'wavefronts' # name of neo event to plot, default is None
  83. MARKER_COLOR: 'k'