Skip to content

Commit 4b8f5e3

Browse files
Merge pull request #1851 from roboflow/feature/new-inference-docs
Rename `inference-exp` -> `inference-models`
2 parents f48c631 + cc3ff27 commit 4b8f5e3

File tree

494 files changed

+17402
-17026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+17402
-17026
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ lora-bases
4141
lora-tars
4242
tmptmp
4343

44-
inference_experimental
44+
inference_models

.github/workflows/docker.inference-exp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
inputs:
66
image_variant:
77
type: string
8-
description: "Image variant to build (e.g., 'cpu', 'cu124', 'jp61') or 'all' for all images. Run 'ls inference_experimental/dockerfiles/' to see available options."
8+
description: "Image variant to build (e.g., 'cpu', 'cu124', 'jp61') or 'all' for all images. Run 'ls inference_models/dockerfiles/' to see available options."
99
required: true
1010
default: "all"
1111
force_push:
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Read version from pyproject.toml
4040
run: |
41-
cd inference_experimental
41+
cd inference_models
4242
VERSION=$(grep -E '^version = ' pyproject.toml | cut -d'"' -f2)
4343
echo "VERSION=${VERSION}"
4444
echo "VERSION=${VERSION}" >> $GITHUB_ENV
@@ -145,5 +145,5 @@ jobs:
145145
project: grl7ffzxd7
146146
tags: ${{ steps.image-tags.outputs.tags }}
147147
platforms: ${{ matrix.build_platforms }}
148-
file: ./inference_experimental/dockerfiles/${{ matrix.dockerfile }}
149-
context: ./inference_experimental
148+
file: ./inference_models/dockerfiles/${{ matrix.dockerfile }}
149+
context: ./inference_models

.github/workflows/e2e_tests_inference_experimental_cpu.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: E2E tests - inference_experimental (CPU)
1+
name: E2E tests - inference_models (CPU)
22
permissions:
33
contents: read
44
on:
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
e2e-tests-inference-experimental-gpu:
10+
e2e-tests-inference-models-gpu:
1111
runs-on:
1212
labels: depot-ubuntu-22.04-4
1313
group: public-depot
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/cache@v3
2020
with:
2121
path: ~/.cache/uv
22-
key: ${{ runner.os }}-uv-3.12-${{ hashFiles('inference_experimental/pyproject.toml') }}
22+
key: ${{ runner.os }}-uv-3.12-${{ hashFiles('inference_models/pyproject.toml') }}
2323
restore-keys: |
2424
${{ runner.os }}-uv-3.12-
2525
- name: 📦 Cache apt packages
@@ -35,14 +35,14 @@ jobs:
3535
python-version: 3.12
3636
check-latest: true
3737
- name: 📦 Install dependencies
38-
working-directory: inference_experimental
38+
working-directory: inference_models
3939
run: |
4040
python -m pip install --upgrade pip
4141
python -m pip install uv
4242
python -m uv venv
4343
python -m uv pip install -e .[test,onnx-cpu,torch-cpu,mediapipe] --python .venv
4444
- name: 🧪 Run E2E tests
45-
working-directory: inference_experimental
45+
working-directory: inference_models
4646
timeout-minutes: 20
4747
run: |
4848
source .venv/bin/activate

.github/workflows/e2e_tests_inference_experimental_gpu.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: E2E tests - inference_experimental (GPU)
1+
name: E2E tests - inference_models (GPU)
22
permissions:
33
contents: read
44
on:
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
e2e-tests-inference-experimental-gpu:
10+
e2e-tests-inference-models-gpu:
1111
runs-on: Roboflow-GPU-VM-Runner
1212
timeout-minutes: 30
1313
steps:
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/cache@v3
1818
with:
1919
path: ~/.cache/uv
20-
key: ${{ runner.os }}-uv-3.12-${{ hashFiles('inference_experimental/pyproject.toml') }}
20+
key: ${{ runner.os }}-uv-3.12-${{ hashFiles('inference_models/pyproject.toml') }}
2121
restore-keys: |
2222
${{ runner.os }}-uv-3.12-
2323
- name: 📦 Cache apt packages
@@ -50,7 +50,7 @@ jobs:
5050
sudo cp /var/cache/apt/archives/*.deb ~/apt-cache/ 2>/dev/null || true
5151
sudo chown -R $(whoami):$(whoami) ~/apt-cache
5252
- name: 📦 Install dependencies
53-
working-directory: inference_experimental
53+
working-directory: inference_models
5454
run: |
5555
export CUDA_HOME=/usr/local/cuda-12.5
5656
export PATH=/usr/local/cuda-12.5/bin:$PATH
@@ -62,7 +62,7 @@ jobs:
6262
python -m uv venv
6363
python -m uv pip install -e .[test,onnx-cu12,trt10,torch-cu124,mediapipe] --python .venv
6464
- name: 🧪 Run E2E tests
65-
working-directory: inference_experimental
65+
working-directory: inference_models
6666
timeout-minutes: 20
6767
run: |
6868
source .venv/bin/activate

.github/workflows/integration_e2e_tests_inference_sdk_x86.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-pip-${{ matrix.python-version }}-
3737
38+
- name: 🚧 Install OS dependencies
39+
run: sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg7 && sudo apt-get update && sudo apt-get install -y libavformat-dev libavdevice-dev
40+
3841
- name: 🐍 Set up Python ${{ matrix.python-version }}
3942
uses: actions/setup-python@v5
4043
with:
@@ -76,6 +79,9 @@ jobs:
7679
restore-keys: |
7780
${{ runner.os }}-pip-${{ matrix.python-version }}-
7881
82+
- name: 🚧 Install OS dependencies
83+
run: sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg7 && sudo apt-get update && sudo apt-get install -y ffmpeg libavformat-dev libavdevice-dev
84+
7985
- name: 🐍 Set up Python ${{ matrix.python-version }}
8086
uses: actions/setup-python@v5
8187
with:

.github/workflows/integration_tests_inference_experimental_cpu.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: INTEGRATION TESTS - inference_experimental (CPU)
1+
name: INTEGRATION TESTS - inference_models (CPU)
22
permissions:
33
contents: read
44
on:
@@ -29,7 +29,7 @@ on:
2929
- '3.12'
3030

3131
jobs:
32-
integration-tests-inference-experimental-cpu:
32+
integration-tests-inference-models-cpu:
3333
name: ${{ matrix.extras.marker }}:${{ matrix.python-version }}
3434
runs-on:
3535
labels: depot-ubuntu-22.04-4
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/cache@v3
5151
with:
5252
path: ~/.cache/uv
53-
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('inference_experimental/pyproject.toml') }}
53+
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('inference_models/pyproject.toml') }}
5454
restore-keys: |
5555
${{ runner.os }}-uv-${{ matrix.python-version }}-
5656
- name: 🐍 Set up Python ${{ matrix.python-version }}
@@ -61,15 +61,15 @@ jobs:
6161
check-latest: true
6262
- name: 📦 Install base dependencies as well as `${{ matrix.extras.install }}` dependencies
6363
if: ${{ (github.event.inputs.extras == '' || github.event.inputs.extras == matrix.extras.marker) && (github.event.inputs.python_version == '' || github.event.inputs.python_version == matrix.python-version) }}
64-
working-directory: inference_experimental
64+
working-directory: inference_models
6565
run: |
6666
python -m pip install --upgrade pip
6767
python -m pip install uv
6868
python -m uv venv
6969
python -m uv pip install -e .[test,${{ matrix.extras.install }}] --python .venv
7070
- name: 🧪 Run tests marked `${{ matrix.extras.marker }}`
7171
if: ${{ (github.event.inputs.extras == '' || github.event.inputs.extras == matrix.extras.marker) && (github.event.inputs.python_version == '' || github.event.inputs.python_version == matrix.python-version) }}
72-
working-directory: inference_experimental
72+
working-directory: inference_models
7373
timeout-minutes: 15
7474
run: |
7575
source .venv/bin/activate

.github/workflows/integration_tests_inference_experimental_gpu.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: INTEGRATION TESTS - inference_experimental (GPU)
1+
name: INTEGRATION TESTS - inference-models (GPU)
22
permissions:
33
contents: read
44
on:
@@ -26,7 +26,7 @@ on:
2626
- '3.12'
2727

2828
jobs:
29-
integration-tests-inference-experimental-gpu:
29+
integration-tests-inference-models-gpu:
3030
name: ${{ matrix.extras.marker }}:${{ matrix.python-version }}
3131
runs-on: Roboflow-GPU-VM-Runner
3232
timeout-minutes: 30
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/cache@v3
4848
with:
4949
path: ~/.cache/uv
50-
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('inference_experimental/pyproject.toml') }}
50+
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('inference_models/pyproject.toml') }}
5151
restore-keys: |
5252
${{ runner.os }}-uv-${{ matrix.python-version }}-
5353
- name: 📦 Cache apt packages
@@ -84,7 +84,7 @@ jobs:
8484
sudo chown -R $(whoami):$(whoami) ~/apt-cache
8585
- name: 📦 Install base dependencies as well as `${{ matrix.extras.install }}` dependencies
8686
if: ${{ (github.event.inputs.extras == '' || github.event.inputs.extras == matrix.extras.marker) && (github.event.inputs.python_version == '' || github.event.inputs.python_version == matrix.python-version) }}
87-
working-directory: inference_experimental
87+
working-directory: inference_models
8888
run: |
8989
export CUDA_HOME=/usr/local/cuda-12.5
9090
export PATH=/usr/local/cuda-12.5/bin:$PATH
@@ -97,7 +97,7 @@ jobs:
9797
python -m uv pip install -e .[test,${{ matrix.extras.install }}] --python .venv
9898
- name: 🧪 Run tests marked `${{ matrix.extras.marker }}`
9999
if: ${{ (github.event.inputs.extras == '' || github.event.inputs.extras == matrix.extras.marker) && (github.event.inputs.python_version == '' || github.event.inputs.python_version == matrix.python-version) }}
100-
working-directory: inference_experimental
100+
working-directory: inference_models
101101
timeout-minutes: 25
102102
run: |
103103
source .venv/bin/activate

.github/workflows/integration_tests_workflows_x86.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements/**') }}
3838
restore-keys: |
3939
${{ runner.os }}-pip-${{ matrix.python-version }}-
40-
- name: 🚧 Install GDAL OS library
41-
run: sudo apt-get update && sudo apt-get install libgdal-dev
40+
- name: 🚧 Install OS dependencies
41+
run: sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg7 && sudo apt-get update && sudo apt-get install -y libgdal-dev ffmpeg libavformat-dev libavdevice-dev
4242
- name: 📦 Install dependencies
4343
run: |
4444
python -m pip install --upgrade pip

.github/workflows/publish.pypi.inference_exp.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939
check-latest: true
4040
- name: 📦 Install dependencies
41-
working-directory: inference_experimental
41+
working-directory: inference_models
4242
run: |
4343
python -m pip install --upgrade pip
4444
python -m pip install uv
4545
- name: 🏷️ Modify version for pre-release
4646
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.pre_release == 'true' }}
47-
working-directory: inference_experimental
47+
working-directory: inference_models
4848
run: |
4949
CURRENT_VERSION=$(grep -m 1 '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
5050
echo "Current version: $CURRENT_VERSION"
@@ -59,12 +59,12 @@ jobs:
5959
rm pyproject.toml.bak
6060
fi
6161
- name: 🔨 Build package
62-
working-directory: inference_experimental
62+
working-directory: inference_models
6363
run: |
6464
python -m uv build
6565
- name: 🚀 Publish to PyPI
6666
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') }}
6767
uses: pypa/gh-action-pypi-publish@release/v1
6868
with:
69-
packages-dir: inference_experimental/dist/
69+
packages-dir: inference_models/dist/
7070
skip-existing: true

.github/workflows/unit_tests_inference_experimental.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: UNIT TESTS - inference_experimental
1+
name: UNIT TESTS - inference-models
22
permissions:
33
contents: read
44
on:
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
unit-tests-inference-experimental:
12+
unit-tests-inference-models:
1313
runs-on:
1414
labels: depot-ubuntu-22.04-4
1515
group: public-depot
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/cache@v3
2525
with:
2626
path: ~/.cache/uv
27-
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('inference_experimental/pyproject.toml') }}
27+
key: ${{ runner.os }}-uv-${{ matrix.python-version }}-${{ hashFiles('inference_models/pyproject.toml') }}
2828
restore-keys: |
2929
${{ runner.os }}-uv-${{ matrix.python-version }}-
3030
- name: 🐍 Set up Python ${{ matrix.python-version }}
@@ -33,15 +33,15 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
check-latest: true
3535
- name: 📦 Install dependencies
36-
working-directory: inference_experimental
36+
working-directory: inference_models
3737
run: |
3838
python -m pip install --upgrade pip
3939
python -m pip install uv
4040
python -m uv venv
4141
python -m uv pip install -e .[test] --python .venv
4242
- name: 🧪 Unit Tests
4343
timeout-minutes: 30
44-
working-directory: inference_experimental
44+
working-directory: inference_models
4545
run: |
4646
source .venv/bin/activate
4747
python -m pytest -n auto tests/unit_tests

0 commit comments

Comments
 (0)