You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/spikeinterface/sorters/external/kilosort4.py
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ class Kilosort4Sorter(BaseSorter):
65
65
"save_preprocessed_copy": False,
66
66
"torch_device": "auto",
67
67
"bad_channels": None,
68
+
"clear_cache": False,
68
69
"use_binary_file": None,
69
70
"delete_recording_dat": True,
70
71
}
@@ -111,6 +112,7 @@ class Kilosort4Sorter(BaseSorter):
111
112
"save_preprocessed_copy": "save a pre-processed copy of the data (including drift correction) to temp_wh.dat in the results directory and format Phy output to use that copy of the data",
112
113
"torch_device": "Select the torch device auto/cuda/cpu",
113
114
"bad_channels": "A list of channel indices (rows in the binary file) that should not be included in sorting. Listing channels here is equivalent to excluding them from the probe dictionary.",
115
+
"clear_cache": "If True, force pytorch to free up memory reserved for its cache in between memory-intensive operations. Note that setting `clear_cache=True` is NOT recommended unless you encounter GPU out-of-memory errors, since this can result in slower sorting.",
114
116
"use_binary_file": "If True then Kilosort is run using a binary file. In this case, if the input recording is not binary compatible, it is written to a binary file in the output folder. "
115
117
"If False then Kilosort is run on the recording object directly using the RecordingExtractorAsArray object. If None, then if the recording is binary compatible, the sorter will use the binary file, otherwise the RecordingExtractorAsArray. "
0 commit comments