Repository navigation
Deepinterpolation revived: training, transfer, and inference with more flexibility #1804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f7225ee
Simplify generators and add tests
alejoe91 1083c27
TF version and test multi-processing
alejoe91 422b4e4
Add test dependencies
alejoe91 f7949d9
Fix tests
alejoe91 7813ea0
Fix tests 1
alejoe91 4e46803
Merge branch 'main' into deepinterp
alejoe91 4e247f2
merge
alejoe91 8f51b9e
Expose predict_workesrs argument
alejoe91 6e423ae
merge
alejoe91 2f9ebb3
Merge branch 'main' into deepinterp
alejoe91 4281b26
Merge branch 'main' into deepinterp
alejoe91 1ed6123
Fix transfer training and expose caching validation
alejoe91 2e6e58c
Fix TF logging verbosity
alejoe91 e6515b8
Set logging correctly
alejoe91 392be28
Set nb_workers to max if -1
alejoe91 c5e6f4b
ProcessPollExecutor with max_workers
alejoe91 beb7f33
Make generateor pickleable
alejoe91 1b46ae6
Simplify generator definition
alejoe91 e136048
Correct use of total_samples and expose training/test duration
alejoe91 6a36156
Merge branch 'main' into deepinterp
alejoe91 aa30c6f
Fix tests
alejoe91 9c312e9
Merge branch 'deepinterp' of github.com:alejoe91/spikeinterface into …
alejoe91 5e3ae74
Add option to use recording lists, test_recording, and multi-segment …
alejoe91 d03097d
Merge branch 'main' into deepinterp
alejoe91 d5880fd
Merge branch 'main' into deepinterp
alejoe91 6a68907
Merge branch 'main' into deepinterp
alejoe91 9eb4e3b
Check if DI is installed for tests and CI
alejoe91 038e4cb
Merge branch 'main' into deepinterp
alejoe91 64b6944
Add 'done'
alejoe91 9d239ca
Fix tests
alejoe91 d4e0824
Merge branch 'main' into deepinterp
alejoe91 3fe5d07
Merge branch 'main' into deepinterp
alejoe91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Testing deepinterpolation | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [synchronize, opened, reopened] | ||
| branches: | ||
| - main | ||
|
|
||
| concurrency: # Cancel previous workflows on the same pull request | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| name: Test on ${{ matrix.os }} OS | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: ["ubuntu-latest"] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.9' | ||
| - name: Get changed files | ||
| id: changed-files | ||
| uses: tj-actions/changed-files@v35 | ||
| - name: Deepinteprolation changes | ||
| id: modules-changed | ||
| run: | | ||
| for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
| if [[ $file == *"/deepinterpolation/"* ]]; then | ||
| echo "DeepInterpolation changed" | ||
| echo "DEEPINTERPOLATION_CHANGED=true" >> $GITHUB_OUTPUT | ||
| fi | ||
| done | ||
| - name: Install dependencies | ||
| if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }} | ||
| run: | | ||
| python -m pip install -U pip # Official recommended way | ||
| # install deepinteprolation | ||
| pip install tensorflow==2.7.0 | ||
| pip install deepinterpolation@git+https://github.com/AllenInstitute/deepinterpolation.git | ||
| pip install protobuf==3.20.* | ||
| pip install -e .[full,test_core] | ||
| - name: Test DeepInterpolation with pytest | ||
| if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }} | ||
| run: | | ||
| pytest -v src/spikeinterface/preprocessing/deepinterpolation | ||
| shell: bash # Necessary for pipeline to work on windows | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| from .deepinterpolation import DeepInterpolatedRecording, deepinterpolate | ||
| from .train import train_deepinterpolation |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.