Skip to content

Commit

Permalink
Merge pull request #1426 from mikel-brostrom/enable-gpu-n-cpu-torch-i…
Browse files Browse the repository at this point in the history
…nstallation

Enable gpu n cpu torch installation
  • Loading branch information
mikel-brostrom authored May 11, 2024
2 parents 281a6be + 48912b4 commit 97627b3
Show file tree
Hide file tree
Showing 3 changed files with 490 additions and 390 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
pip install poetry
poetry config virtualenvs.create false
poetry install --with yolo
poetry install --with cpu,yolo
- name: Generate detections and embeddings
run: |
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install --with yolo,evolve
poetry install --with cpu,yolo,evolve
- name: Generate detections and embeddings
run: |
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install
poetry install --with cpu
- name: Generate detections and embeddings
run: |
Expand All @@ -141,7 +141,7 @@ jobs:
- run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install --with yolo
poetry install --with cpu,yolo
- name: Test tracking with pose models
env:
IMG: ./assets/MOT17-mini/train/MOT17-02-FRCNN/img1/000001.jpg
Expand All @@ -160,7 +160,7 @@ jobs:
- run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install --with yolo
poetry install --with cpu,yolo
- name: Test tracking with pose models
env:
IMG: ./assets/MOT17-mini/train/MOT17-02-FRCNN/img1/000001.jpg
Expand All @@ -186,7 +186,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install --with yolo
poetry install --with cpu,yolo
- name: Test tracking with seg models
env:
IMG: ./assets/MOT17-mini/train/MOT17-02-FRCNN/img1/000001.jpg
Expand All @@ -209,7 +209,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install --with export
poetry install --with cpu,export
- name: Test export models
run: python boxmot/appearance/reid_export.py --include torchscript onnx openvino --device cpu --batch-size 3 --dynamic
- name: Test inference on exported models
Expand All @@ -234,7 +234,7 @@ jobs:
- run: |
python -m pip install --upgrade pip setuptools wheel poetry
poetry config virtualenvs.create false
poetry install --with test
poetry install --with cpu,test
- name: Test export models
run: python boxmot/appearance/reid_export.py --include torchscript onnx openvino --device cpu --batch-size 3 --dynamic
- name: Pytest tests # after tracking options as this does not download models
Expand Down
Loading

0 comments on commit 97627b3

Please sign in to comment.