Skip to content

Commit

Permalink
fix(conda): add conda env shebang to inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ravnoor committed Dec 15, 2024
1 parent 51c7f01 commit 40cea3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-inference-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Run inference for deepFCD
run: |
conda run -n deepFCD ./app/inference.py ${CI_TESTING_PATIENT_ID} t1.nii.gz flair.nii.gz ~/io cuda 1 1
./app/inference.py ${CI_TESTING_PATIENT_ID} t1.nii.gz flair.nii.gz ~/io cuda 1 1
env:
CI_TESTING_PATIENT_ID: "sub-00055"
CI_TESTING_GT: "./tests/segmentations/sub-00055/sub-00055_label_dilated_final.nii.gz"
Expand Down
4 changes: 2 additions & 2 deletions app/inference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env conda run -n deepFCD python3

import logging
import multiprocessing
Expand Down Expand Up @@ -128,7 +128,7 @@
# seed = options['seed']
options["dropout_mc"] = True
options["batch_size"] = 350000
options["mini_batch_size"] = 2048
options["mini_batch_size"] = 8192 # 1536 uses 3700MiB of GPU VRAM; 8192:18888MiB
options["load_checkpoint_1"] = True
options["load_checkpoint_2"] = True

Expand Down

0 comments on commit 40cea3e

Please sign in to comment.