diff --git a/README.md b/README.md index 356db5488..d1706ba52 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/totalsegmentator/config.py b/totalsegmentator/config.py index ea096f526..9663b9067 100644 --- a/totalsegmentator/config.py +++ b/totalsegmentator/config.py @@ -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" @@ -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"