TST: Do not remove fMRI notebook from list of discovered notebooks#117
TST: Do not remove fMRI notebook from list of discovered notebooks#117jhlegarreta wants to merge 1 commit into
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #117 +/- ##
=======================================
Coverage 71.19% 71.19%
=======================================
Files 23 23
Lines 1045 1045
Branches 121 121
=======================================
Hits 744 744
Misses 259 259
Partials 42 42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Looks like as it fails at: It also happened when I tried to run the notebook locally. Did not investigate further. |
2f60d2e to
f0569bc
Compare
|
I just filed an issue reporting what you see nipreps/synthstrip#11 Now, you can configure the model to reside under a FreeSurfer home directory (which can be empty except for the model itself) https://github.com/nipreps/synthstrip/blob/dd29a6c751f6c9cc8a31983d8bfbc82d1d97c4a6/nipreps/synthstrip/wrappers/nipype.py#L38 or, you can set an input on the interface: nifreeze/docs/notebooks/bold_realignment.ipynb Lines 78 to 81 in 1cef030 Instead of: bmsk_results = SynthStrip(
in_file=str(avg_path),
use_gpu=True,
).run(cwd=str(WORKDIR))you add a bmsk_results = SynthStrip(
in_file=str(avg_path),
use_gpu=True,
model='/path/to/synthstripmodel.pt',
).run(cwd=str(WORKDIR)) |
f0569bc to
e894222
Compare
|
Re #117 (comment) thanks. Let's see what the CI says: |
e894222 to
0135322
Compare
|
@oesteban Seems we are still missing something: Suggestions are welcome. |
I guess we'll need to close nipreps/synthstrip#11 to print out where the file is being sought |
16d4ee7 to
83f248d
Compare
|
I must be missing something very evident, but the model weights file is still not being found. The file is being downloaded properly at the testing data location: @oesteban Sorry, I am at a loss here about what else to check. Suggestions are welcome. |
|
Okay you added a specific test before entering the interface. However, the test is failing because it expects a folder. |
34d7b98 to
a65c768
Compare
|
This is proving time-consuming and challenging to debug 😔. My last bet would be to convert the notebook to a python script and to have it tested as such in the CI. This fsiled locally because Python didn't like |
cca464f to
af23400
Compare
|
@oesteban OK, now errors make sense and I should have realized earlier: the issue is CUDA drivers: https://github.com/nipreps/nifreeze/actions/runs/15006593539/job/42166634496?pr=117#step:14:1341 Thoughts:
|
af23400 to
e2ae7d0
Compare
e2ae7d0 to
0d97756
Compare
5a438de to
e5f6d0f
Compare
|
After discussing this offline, it looks like some commit was missed when contributing the notebook and some cell is missing. I will open a separate PR to:
I will go ahead and merge the new PR as soon as I see that we are stuck in the same point as here. I will open a separate PR to try to install the CUDA drivers so that the notebook can run more quickly. We will then continue here or close this PR. |
76832fb to
0ca1a16
Compare
I did it here for practical reasons and the conclusion is here: So unless there is something wrong with the installation, and after reading more about it, we will not be able to make this happen without a GPU @oesteban. If you happen to have a workaround, please go ahead and try it; otherwise, my proposal is to
As opposed to the Python script that was run on a CPU: Running the code on Jupyter triggers a cell timeout: So I will push a separate PR to increase the timeout value so that we can eventually run the notebook to completion. |
0ca1a16 to
0f4730d
Compare
Do not remove fMRI notebook from list of discovered notebooks: this will allow running the notebook at the time scheduled by the
notebooks.ymlGHA workflow file.