Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshitha authored Apr 24, 2023
1 parent d6f5434 commit bcbd76a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ placeholders for paths to input and output directories, respectively.
If you have a small dataset with less than 10 subjects, then it might be easiest to run the defacing algorithm serially.

```bash
python dsst_defacing_wf.py -i ${INPUT_DIR} -o ${OUTPUT_DIR}
python dsst-defacing-pipeline/src/dsst_defacing_wf.py -i ${INPUT_DIR} -o ${OUTPUT_DIR}
```

#### Option 2: In parallel at subject level
Expand All @@ -102,7 +102,7 @@ a. Assuming these scripts are run on the NIH HPC system, the first step would be

for i in `ls -d ${INPUT_DIR}/sub-*`; do \
SUBJ=$(echo $i | sed "s|${INPUT_DIR}/||g" ); \
echo "python src/dsst_defacing_wf.py -i ${INPUT_DIR} -o ${OUTPUT_DIR} -p ${SUBJ}"; \
echo "python dsst-defacing-pipeline/src/dsst_defacing_wf.py -i ${INPUT_DIR} -o ${OUTPUT_DIR} -p ${SUBJ}"; \
done > defacing_parallel_subject_level.swarm
```

Expand All @@ -126,7 +126,7 @@ for i in `ls -d ${INPUT_DIR}/sub-*`; do
SUBJ=$(echo $i | sed "s|${INPUT_DIR}/||g" );
for j in `ls -d ${INPUT_DIR}/${SUBJ}/ses-*`; do
SESS=$(echo $j | sed "s|${INPUT_DIR}/${SUBJ}/||g" )
echo "python src/dsst_defacing_wf.py -i ${INPUT_DIR} -o ${OUTPUT_DIR} -p ${SUBJ} -s ${SESS}";
echo "python dsst-defacing-pipeline/src/dsst_defacing_wf.py -i ${INPUT_DIR} -o ${OUTPUT_DIR} -p ${SUBJ} -s ${SESS}";
done;
done > defacing_parallel_session_level.swarm
```
Expand All @@ -140,7 +140,7 @@ swarm -f defacing_parallel_session_level.swarm --merge-output --logdir ${OUTPUT_
Generate 3D renders for every defaced image in the output directory.

```bash
python src/generate_renders.py -o ${OUTPUT_DIR}
python dsst-defacing-pipeline/src/generate_renders.py -o ${OUTPUT_DIR}
```

### Visual Inspection
Expand Down

0 comments on commit bcbd76a

Please sign in to comment.