Comments (3)
I'm also remembering this comment from the Kilosort code about making things slower but deterministic.
https://github.com/MouseLand/Kilosort/blob/main/CUDA/mexGPUall.m#L12
In our Docker build process, this is realized here:
https://github.com/benjamin-heasly/kilosort3-docker/blob/main/kilosort3/mex-build.sh#L62
Why would deterministic be slower? I'm not sure what this is all about, but it seems to meet the metal here:
https://github.com/MouseLand/Kilosort/blob/main/CUDA/mexMPnu8.cu#L987
Something we could mess with if we want.
from kilosort3-docker.
Here's what I'll try:
- Modify our Docker image build to set both
ENSURE_DETERM
andENABLE_STABLEMODE
during the build of mex-gpu functionmexMPnu8
. - Modify our
runKilosort
entrypoint to accept a value foruseStableMode
, to use as Kilosort'sops.useStableMode
, which Kilosort passes as an argument to itsmexMPnu8
mex-gpu function. - Modify our
runKilosort
entrypoint to accept a value forLTseed
, to use as Kilosort'sops.LTseed
, which Kilosort then passes on to Matlab'srng
. - Modify our
runKilosort
entrypoint to accept a valuegpuSeed
, and to apply this value after initializing the gpu, using Matlab'sgpurng('default')
andgpurng(gpuSeed)
After all that I'll come back and comment on whether things seem deterministic -- either way.
from kilosort3-docker.
I sorted the same file three times, using the v0.0.32 version of this repo, which makes a best effort to be rng-consistent, as in the comment above.
It seems the sorting is still not deterministic. Informally, I saw:
- test-1: cluster count 46, good clusters 11, 39, 42
- test-2: cluster count 34, good clusters 27, 30
- test-3: cluster count 48, good clusters 11, 41, 44
FWIW, this was a 16-channel Plexon recording, about 3993s long, which we converted to Kilosort format using plx-to-kilosort v0.0.22.
From this little test I conclude that I don't know a straightforward way to make Kilosort 3 deterministic. Perhaps we'll just move on as-is until we need otherwise, or until Kilosort 4, which may be quite different, anyway!
from kilosort3-docker.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kilosort3-docker.