Skip to content

Commit 072e1a7

Browse files
Merge pull request #105 from neuropoly/nm/update_python_version
Update README versions for python and pytorch
2 parents 2e5d5eb + b6a0987 commit 072e1a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When not available, sacrum segmentations were generated using the [totalsegmenta
5656
## Dependencies
5757

5858
- `bash` terminal
59-
- [Python](https://www.python.org/) >= 3.9, with pip >= 23 and setuptools >= 67
59+
- [Python](https://www.python.org/) >= 3.10, with pip >= 23 and setuptools >= 67
6060

6161
## Installation
6262

@@ -76,7 +76,7 @@ cd TotalSpineSeg
7676
```
7777
- conda env
7878
```
79-
conda create -n myenv python=3.9
79+
conda create -n myenv python=3.10
8080
conda activate myenv
8181
```
8282

@@ -92,10 +92,10 @@ cd TotalSpineSeg
9292
python3 -m pip install totalspineseg
9393
```
9494

95-
5. For CUDA GPU support, install **PyTorch** following the instructions on their [website](https://pytorch.org/). Be sure to add the `--upgrade` flag to your installation command to replace any existing PyTorch installation.
95+
5. For CUDA GPU support, install **PyTorch<2.6** following the instructions on their [website](https://pytorch.org/). Be sure to add the `--upgrade` flag to your installation command to replace any existing PyTorch installation.
9696
Example:
9797
```bash
98-
python3 -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade
98+
python3 -m pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu118 --upgrade
9999
```
100100

101101
6. **OPTIONAL STEP:** Define a folder where weights will be stored:

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "totalspineseg"
3-
version = "20250205"
4-
requires-python = ">=3.9"
3+
version = "20250224"
4+
requires-python = ">=3.10"
55
description = "TotalSpineSeg is a tool for automatic instance segmentation and labeling of all vertebrae, intervertebral discs (IVDs), spinal cord, and spinal canal in MRI images."
66
readme = "README.md"
77
authors = [

0 commit comments

Comments
 (0)