Skip to content

Commit

Permalink
Made explainable AI consistent with the kit template (#171)
Browse files Browse the repository at this point in the history
* Made explainable AI consistent with the kit template

* Updated requirements
  • Loading branch information
adrianboguszewski authored Jan 20, 2025
1 parent 847e546 commit 89c27fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ai_ref_kits/explainable_ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ New updates will be added here.

## Installing Prerequisites

Now, let's dive into the steps starting with installing Python. We recommend using Ubuntu to set up and run this project. This project requires Python 3.8 or higher and a few libraries. If you don't have Python installed on your machine, go to https://www.python.org/downloads/ and download the latest version for your operating system. Follow the prompts to install Python, making sure to check the option to add Python to your PATH environment variable.
Now, let's dive into the steps starting with installing Python. We recommend using Ubuntu to set up and run this project. This project requires Python 3.9 or higher and a few libraries. If you don't have Python installed on your machine, go to https://www.python.org/downloads/ and download the latest version for your operating system. Follow the prompts to install Python, making sure to check the option to add Python to your PATH environment variable.

Install libraries and tools:

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ai_ref_kits/explainable_ai/explainable_ai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@
"import cv2\n",
"\n",
"model = YOLO('model/yolov8m_openvino_model/')\n",
"cap = cv2.VideoCapture(\"Cars-FHD.mov\")\n",
"cap = cv2.VideoCapture(\"data/Cars-FHD.mov\")\n",
"assert cap.isOpened(), \"Error reading video file\"\n",
"w, h, fps = (int(cap.get(x)) for x in (cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT, cv2.CAP_PROP_FPS))\n",
"\n",
Expand Down
6 changes: 4 additions & 2 deletions ai_ref_kits/explainable_ai/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
--extra-index-url https://download.pytorch.org/whl/cpu

openvino==2024.4.0
nncf==2.13.0
ultralytics==8.3.23
numpy<1.27
numpy==1.26.4
pillow==11.0.0
opencv-python==4.10.0.84
onnx==1.17.0
torch==2.5.0
torchvision==0.20.0
supervision==0.24.0
supervision==0.25.1
jupyterlab==4.2.5
tqdm==4.66.6
pycocotools==2.0.8
Expand Down

0 comments on commit 89c27fa

Please sign in to comment.