-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Inference with YOLOv8 Models (#160)
* Support loading and predicting using YOLOv8 models * Fixed model format inference * Fixed py-cpuinfo import errors * Update docs * Update release workflow * Fixed eslint issues * Revert legacy icons
- Loading branch information
1 parent
7847650
commit fe11b08
Showing
46 changed files
with
1,272 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /bin/bash | ||
|
||
chmod u+x setup-virtualenv.sh | ||
./setup-virtualenv.sh | ||
|
||
. ./portal_build/.venv/Scripts/activate | ||
|
||
cd src/app/ | ||
nvm install 16 && nvm use 16 | ||
npm install --legacy-peer-deps | ||
npm run build:static | ||
|
||
cd ../engine/ | ||
pyinstaller \ | ||
--collect-data ultralytics \ | ||
--hidden-import pydicom.encoders.gdcm \ | ||
--hidden-import pydicom.encoders.pylibjpeg \ | ||
--hidden-import engineio.async_drivers.threading \ | ||
-F run.py \ | ||
--distpath ../../portal_build/dist | ||
|
||
chmod u+x ../../portal_build/dist/run.exe | ||
|
||
cd ../.. | ||
npm run dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
# Common Issues | ||
|
||
## General | ||
|
||
- **Portal directory not found**: Build/cache files are stored in the following directories based on your operating system: | ||
|
||
- **Windows EXE**: | ||
- Absolute path: `C:\Users\$USER\AppData\Local\Programs\Portal\resources\server` | ||
- Relative path: `resources\server` | ||
- **Linux Build (localhost)**: | ||
- Absolute path: `PATH/TO/portal/portal_build/server` | ||
- Relative path: `portal_build/server` | ||
- **Development Build**: | ||
- Absolute path: `PATH/TO/portal/server` | ||
- Relative path: `server` | ||
|
||
## Windows Executable | ||
|
||
- **No module named `{package}`**: You need to install the module. You can do this by running `pip install {package}` in the command line. If you are using a virtual environment, make sure you are in the correct environment. If you have already installed the module, make sure that you add this module as a `hidden-import` when you are building the executable using PyInstaller. You can do this by adding the `--hidden-import {package}` flag in `build-windows.sh`. | ||
|
||
```bash | ||
pyinstaller \ | ||
-F run.py \ | ||
--hidden-import {package} \ | ||
--distpath ../../portal_build/dist | ||
``` | ||
|
||
- **Invalid path/File not found error (`C:\Users\$USER\AppData\Local\Temp\_MEIXXXXX\{package}\{subpackage}\{file}`)**: You need to add the package as a `datas` parameter for PyInstaller. You can do this by adding the `--collect-data` flag in `build-windows.sh`. | ||
|
||
```bash | ||
pyinstaller \ | ||
-F run.py \ | ||
--collect-data {package} \ | ||
--distpath ../../portal_build/dist | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
PYTHONPATH=$(readlink -f src/) pylint --rcfile=.pylintrc src/engine/*.py | ||
PYTHONPATH=$(readlink -f src/) pylint --rcfile=.pylintrc src/engine/*.py |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ torchvision==0.13.1 | |
onnx==1.12.0 | ||
onnx2torch==1.5.6 | ||
onnxruntime==1.14.1 | ||
ultralytics==8.0.133 | ||
werkzeug==2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.