Skip to content

Commit

Permalink
Merge pull request #48 from hdr-bgnn/hf-model-storage
Browse files Browse the repository at this point in the history
Use containers with hugging face model storage
  • Loading branch information
johnbradley authored Jul 25, 2023
2 parents 807bb05 + c054a42 commit 18c271b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ rule generate_metadata:
mask = 'Mask/{image}_mask.png'
log: 'logs/generate_metadata_{image}.log'
container:
'docker://ghcr.io/hdr-bgnn/drexel_metadata:0.5'
'docker://ghcr.io/hdr-bgnn/drexel_metadata:0.6'
shell: 'gen_metadata.py {input} --device cpu --outfname {output.metadata} --maskfname {output.mask} > {log} 2>&1'

# Transform metadata into a format compatible with the following rules
Expand Down Expand Up @@ -52,7 +52,7 @@ rule segment_image:
output: 'Segmented/{image}_segmented.png'
log: 'logs/segment_image_{image}.log'
container:
'docker://ghcr.io/hdr-bgnn/bgnn-trait-segmentation:0.0.6'
'docker://ghcr.io/hdr-bgnn/bgnn-trait-segmentation:0.0.7'
shell:
'segmentation_main_rescale_origin.py {input} {output} > {log} 2>&1'

0 comments on commit 18c271b

Please sign in to comment.