Skip to content

Commit

Permalink
add totalseg_setup to download_weights
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Jul 18, 2023
1 parent a54f0f0 commit f36fb64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/totalseg_download_weights
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from pathlib import Path
import argparse

from totalsegmentator.libs import download_pretrained_weights

from totalsegmentator.config import setup_totalseg

if __name__ == "__main__":
"""
Expand Down Expand Up @@ -33,6 +33,8 @@ if __name__ == "__main__":
"liver_vessels": [8]
}

setup_totalseg()

for task_id in task_to_id[args.task]:
print(f"Processing {task_id}...")
download_pretrained_weights(task_id)

0 comments on commit f36fb64

Please sign in to comment.