Skip to content

Commit ef218ae

Browse files
committed
depenency version changes for Python 3.7 and 3.10
1 parent 30ab598 commit ef218ae

File tree

3 files changed

+62
-7
lines changed

3 files changed

+62
-7
lines changed

.github/workflows/build.yml

+56
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,62 @@ jobs:
163163
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/idenprof_model_classes.json -P test/data-json
164164
165165
166+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/test-resources-v3/data-datasets.zip -P test
167+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/test-resources-v3/data-images.zip -P test
168+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/test-resources-v3/data-videos.zip -P test
169+
170+
unzip test/data-datasets.zip -d test
171+
unzip test/data-images.zip -d test
172+
unzip test/data-videos.zip -d test
173+
- name: Run Unittest
174+
run: |
175+
pytest test -vvv
176+
177+
UnitestPython310:
178+
179+
name: Python3.10 Tests
180+
runs-on: ubuntu-latest
181+
# needs: None
182+
steps:
183+
- uses: actions/checkout@v3
184+
- uses: actions/setup-python@v4
185+
with:
186+
python-version: '3.10'
187+
cache: 'pip'
188+
- name: Install Dependencies
189+
run: |
190+
pip install -r requirements.txt
191+
pip install -r requirements_extra.txt
192+
- name: Download and Setup Resources
193+
env:
194+
CI: false
195+
run: |
196+
sudo apt-get update
197+
sudo apt-get install unzip -y
198+
199+
mkdir test/data-models
200+
mkdir test/data-json
201+
202+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/densenet121-a639ec97.pth -P test/data-models
203+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/densenet121-idenprof-test_acc_0.82550_epoch-95.pt -P test/data-models
204+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/inception_v3-idenprof-test_acc_0.81050_epoch-92.pt -P test/data-models
205+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/inception_v3_google-1a9a5a14.pth -P test/data-models
206+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/mobilenet_v2-b0353104.pth -P test/data-models
207+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/mobilenet_v2-idenprof-test_acc_0.85300_epoch-92.pt -P test/data-models
208+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/resnet50-19c8e357.pth -P test/data-models
209+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/resnet50-idenprof-test_acc_0.78200_epoch-91.pt -P test/data-models
210+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/retinanet_resnet50_fpn_coco-eeacb38b.pth -P test/data-models
211+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/tiny-yolov3.pt -P test/data-models
212+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/tiny_yolov3_number-plate-dataset-imageai_mAP-0.22595_epoch-20.pt -P test/data-models
213+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/yolov3.pt -P test/data-models
214+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/yolov3_number-plate-dataset-imageai_mAP-0.57145_epoch-11.pt -P test/data-models
215+
216+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/idenprof.json -P test/data-json
217+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/number-plate-dataset-imageai_tiny_yolov3_detection_config.json -P test/data-json
218+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/number-plate-dataset-imageai_yolov3_detection_config.json -P test/data-json
219+
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/3.0.0-pretrained/idenprof_model_classes.json -P test/data-json
220+
221+
166222
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/test-resources-v3/data-datasets.zip -P test
167223
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/test-resources-v3/data-images.zip -P test
168224
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/test-resources-v3/data-videos.zip -P test

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ cython
22
pillow>=7.0.0
33
numpy>=1.18.1
44
opencv-python>=4.1.2
5-
torch==1.9.0 --extra-index-url https://download.pytorch.org/whl/cpu
6-
torchvision==0.10.0 --extra-index-url https://download.pytorch.org/whl/cpu
5+
torch>=1.9.0 --extra-index-url https://download.pytorch.org/whl/cpu
6+
torchvision>=0.10.0 --extra-index-url https://download.pytorch.org/whl/cpu
77
pytest==7.1.3
88
tqdm==4.64.1
9-
scipy==1.7.3
10-
matplotlib==3.6.2
9+
scipy>=1.7.3
10+
matplotlib>=3.4.3
1111
mock==4.0.3

requirements_gpu.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ torch>=1.9.0 --extra-index-url https://download.pytorch.org/whl/cu102
66
torchvision>=0.10.0 --extra-index-url https://download.pytorch.org/whl/cu102
77
pytest==7.1.3
88
tqdm==4.64.1
9-
scipy==1.7.3
10-
matplotlib==3.6.2
11-
mock==4.0.3
9+
scipy>=1.7.3
10+
matplotlib>=3.4.3

0 commit comments

Comments
 (0)