Skip to content

Commit

Permalink
bugfix in setting license; add 6mm to download of total model
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Jan 19, 2024
1 parent 5162531 commit 9c35040
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion totalsegmentator/bin/totalseg_download_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main():
args = parser.parse_args()

task_to_id = {
"total": [291, 292, 293, 294, 295],
"total": [291, 292, 293, 294, 295, 298],
"total_fast": [297, 298],
"lung_vessels": [258],
"cerebral_bleed": [150],
Expand Down
4 changes: 2 additions & 2 deletions totalsegmentator/bin/totalseg_set_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def main():

args = parser.parse_args()

if not args.license_number.startswith("aca_") or not args.license_number.startswith("com_"):
raise ValueError("license number must start with 'aca_' or 'com_' ")
if not args.license_number.startswith("aca_"):
raise ValueError("license number must start with 'aca_'")
if len(args.license_number) != 18:
raise ValueError("license number must have exactly 18 characters.")

Expand Down

0 comments on commit 9c35040

Please sign in to comment.