Joshua Lee

Results comments of Joshua Lee

It was a VRAM issue. HOWEVER, it is because changing models in the GUI does not always unload the model from GPU RAM..change a few times between models, and boom...

It seems T2 brain masking and T1 brain masking takes different approaches..

in anat_preproc, add a dummy node to just return the resource. ``` @nodeblock( name="brain_mask_custom", switch=[ ["anatomical_preproc", "brain_extraction", "run"], ["anatomical_preproc", "run"], ], option_key=["anatomical_preproc", "brain_extraction", "using"], option_val="custom", inputs=["space-T1w_desc-brain_mask"], outputs=["space-T1w_desc-brain_mask"], ) def brain_mask_custom(wf,...

add custom as a valid option in schema ``` valid_options = { 'acpc': { 'target': ['brain', 'whole-head'] }, 'brain_extraction': { 'using': ['3dSkullStrip', 'BET', 'UNet', 'niworkflows-ants', 'FreeSurfer-BET-Tight', 'FreeSurfer-BET-Loose', 'FreeSurfer-ABCD', 'FreeSurfer-Brainmask','custom'] ```

add to pipeline.py the option for custom ``` from CPAC.anat_preproc.anat_preproc import ( freesurfer_reconall, freesurfer_abcd_preproc, anatomical_init, acpc_align_head, acpc_align_head_with_mask, acpc_align_brain, acpc_align_brain_with_mask, registration_T2w_to_T1w, non_local_means, n4_bias_correction, t1t2_bias_correction, brain_mask_afni, brain_mask_fsl, brain_mask_niworkflows_ants, brain_mask_unet, brain_mask_freesurfer, brain_mask_freesurfer_abcd, brain_mask_freesurfer_fsl_tight,...

And after those changes, space-T1w_desc-brain_mask is not in the resource pool...so I guess, I went the long way around to finding that out. ``` raise LookupError( LookupError: When trying to...

I have placed files directly in the output folder ./outputs/pipeline_APP-core-pipeline/107925100_ses-1/anat/sub-107925100_ses-1_desc-brain_T1w.nii.gz ./outputs/pipeline_APP-core-pipeline/107925100_ses-1/anat/sub-107925100_ses-1_desc-brain_T1w.nii.gz but I still get varieties of : ``` connect, fetched =self.get(resource, File "/code/CPAC/pipeline/engine.py", line 364, in get raise LookupError(...

Sorry for the incomplete information. This is in my config, and see attached files containing the timestamped configs and failed to start error. ``` pipeline_setup: outdir_ingress: run: On ``` Here...

ugh..I meant to name them with the space key, but I guess. I was tired. Unfortunately, renaming it correctly didn't change the lookup error: ``` LookupError: When trying to connect...