Skip to content

Commit c0c8ec3

Browse files
committed
Update installation restricting torchmetric version to avoid an issue in classification workflows
1 parent f535b58 commit c0c8ec3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https
156156
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cpu
157157

158158
# Finally install some packages that rely on the Pytorch installation
159-
pip install timm pytorch-msssim torchmetrics[image]
159+
pip install timm pytorch-msssim torchmetrics[image]==1.4.*
160160
```
161161

162162
The PyPI package does not install <a href="https://pytorch.org/get-started/locally/" target="_blank" rel="noopener noreferrer">Pytorch</a> because there is no option to build that package specifying exactly the CUDA version you want to use. There are a few solutions to set up ``pyproject.toml`` with poetry and specify the CUDA version, as discussed <a href="https://github.com/python-poetry/poetry/issues/6409" target="_blank" rel="noopener noreferrer">here</a>, but then PyPI package can not be built (as stated <a href="https://peps.python.org/pep-0440/#direct-references" target="_blank" rel="noopener noreferrer">here</a>).
@@ -253,7 +253,7 @@ pip install --editable .
253253

254254
# Install Pytorch and GPU dependencies
255255
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118
256-
pip install timm pytorch-msssim torchmetrics[image]
256+
pip install timm pytorch-msssim torchmetrics[image]==1.4.*
257257
```
258258
{% endtab %}
259259

@@ -264,7 +264,7 @@ pip install --editable .
264264

265265
# Install Pytorch and GPU dependencies
266266
pip install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
267-
pip install timm pytorch-msssim torchmetrics[image]
267+
pip install timm pytorch-msssim torchmetrics[image]==1.4.*
268268
```
269269
{% endtab %}
270270
<!-- command_line_CUDA_installation -->

0 commit comments

Comments
 (0)