Skip to content

Commit e0bb33a

Browse files
authored
Merge pull request #29 from WildMeOrg/WIC_default_udpdate
Wic default batch size update
2 parents 3e06129 + 8ed588e commit e0bb33a

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ on: push
77

88
jobs:
99
test:
10-
runs-on: ubuntu-latest
10+
# Use the same Python version used the Dockerfile
11+
runs-on: ubuntu-22.04
1112
strategy:
1213
fail-fast: false
1314
matrix:
14-
# Use the same Python version used the Dockerfile
15-
python-version: [3.x]
15+
# match ubuntu-22.04
16+
python-version: ['3.10']
1617

1718
env:
18-
OS: ubuntu-latest
19+
OS: ubuntu-22.04
1920
PYTHON: ${{ matrix.python-version }}
2021
WIC_BATCH_SIZE: 16
2122

@@ -37,7 +38,7 @@ jobs:
3738
pip3 install -r requirements.txt
3839
pip3 install -r requirements.optional.txt
3940
pip3 install pytest pytest-cov pytest-random-order sahi[full]
40-
41+
4142
- name: Lint with flake8
4243
run: |
4344
# stop the build if there are Python syntax errors or undefined names

docs/environment.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and configurations.
1919
The configuration setting for which machine lerning models to use with the AGG.
2020
Must be one of ``phase1`` or ``mvp``, or their respective aliases as ``old`` or ``new``.
2121
Defaults to the value of the ``CONFIG`` environment variable.
22-
- ``WIC_BATCH_SIZE`` (default: 256)
22+
- ``WIC_BATCH_SIZE`` (default: 160)
2323
The configuration setting for how many tiles to send to the GPU in a single batch during the WIC
2424
prediction (forward inference). The LOC model has a fixed batch size (16 for ``phase1`` and
2525
32 for ``mvp``) and cannot be adjusted. This setting can be used to control how fast the pipeline

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ click
22
codecov
33
coverage
44
cryptography
5-
dill==0.3.7
5+
dill==0.3.*
66
gradio
77
imgaug
88
numpy
99
onnxruntime
10-
opencv-python-headless==4.7.0.68
10+
opencv-python-headless==4.7.0.*
1111
Pillow
12-
pooch==1.8.0
12+
pooch==1.8.*
1313
rich
1414
sahi==0.11.12
1515
sphinx-click

scoutbot/wic/dataloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import torchvision
88
import utool as ut
99

10-
BATCH_SIZE = int(os.getenv('WIC_BATCH_SIZE', 256))
10+
BATCH_SIZE = int(os.getenv('WIC_BATCH_SIZE', 160))
1111
INPUT_SIZE = 224
1212

1313

0 commit comments

Comments
 (0)