mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Update pip install to use whl/cpu
This commit is contained in:
parent
036b1f0cc9
commit
1a2d8bb5a0
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
python: ['3.10', '3.12']
|
||||
torch: [{base: '1.13.0', vision: '0.14.0'}, {base: '2.4.0', vision: '0.19.0'}]
|
||||
torch: [{base: '1.13.0', vision: '0.14.0'}, {base: '2.4.1', vision: '0.19.1'}]
|
||||
testmarker: ['-k "not test_models"', '-m base', '-m cfg', '-m torchscript', '-m features', '-m fxforward', '-m fxbackward']
|
||||
exclude:
|
||||
- python: '3.12'
|
||||
@ -46,7 +46,7 @@ jobs:
|
||||
sudo sed -i 's/azure\.//' /etc/apt/sources.list
|
||||
sudo apt update
|
||||
sudo apt install -y google-perftools
|
||||
pip install --no-cache-dir torch==${{ matrix.torch.base }}+cpu torchvision==${{ matrix.torch.vision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
||||
pip install --no-cache-dir torch==${{ matrix.torch.base }}+cpu torchvision==${{ matrix.torch.vision }}+cpu --index-url https://download.pytorch.org/whl/cpu
|
||||
- name: Install requirements
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user