Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wasserth committed Nov 25, 2024
1 parent 0197615 commit 066e681
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ After acquiring a license number for the non-open tasks you can set it with the
totalseg_set_license -l aca_12345678910
```

If you do not have internet access on the machine you want to run TotalSegmentator on:
1. Install TotalSegmentator [and set up the license] on a machine with internet.
2. Run TotalSegmentator for one subject on this machine. This will download the weights and save them to `~/.totalsegmentator`.
3. Copy the folder `~/.totalsegmentator` from this machine to the machine without internet.
4. TotalSegmentator should now work also on the machine without internet.

### Train/validation/test split
The exact split of the dataset can be found in the file `meta.csv` inside of the [dataset](https://doi.org/10.5281/zenodo.6802613). This was used for the validation in our paper.
Expand Down
3 changes: 2 additions & 1 deletion totalsegmentator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def is_valid_license(license_number):
return False


# currently not used anywere
def has_valid_license():
totalseg_dir = get_totalseg_dir()
totalseg_config_file = totalseg_dir / "config.json"
Expand All @@ -138,7 +139,7 @@ def has_valid_license():
return "invalid_license", f"ERROR: Invalid license number ({license_number}). Please check your license number or contact support."


# Online check if license number is in config; do not do web request
# Used in python_api
def has_valid_license_offline():
totalseg_dir = get_totalseg_dir()
totalseg_config_file = totalseg_dir / "config.json"
Expand Down

0 comments on commit 066e681

Please sign in to comment.