- Install scoop https://scoop.sh/#/
- Use scoop to install
git
,nodejs
,nvm
,yarn
,java17
andvisual studio code
if not already installed.
scoop bucket add main
scoop bucket add extras
scoop bucket add java
scoop install main/git
scoop install main/nodejs
scoop install main/nvm
scoop install main/yarn
scoop install java/openjdk17
scoop install extras/vscode
- The version of VSCode must be at
1.78.2
or newer. - Install the following VSCode extensions if not already installed
code --install-extension vscjava.vscode-java-pack
code --install-extension vscjava.vscode-gradle
- Clone OML Vision into your workspace
git clone https://github.com/opencaesar/oml-vision.git
- Open OML Vision in VSCode
- Press F5 on your Keyboard or Ctrl+Shift+D (Windows) or Cmd+Shift+D (macOS) and click the green play button in the upper left that says
Run Extension
. This takes care of building the application in Dev Mode. - Open the OML model repo in Dev mode of OML Vision. Read more here
- IMPORTANT you can’t have the same OML repo open in another instance of vscode. If you try to open a folder in the vision app that is already open in another instance of vscode it just quietly does nothing.
- Click the eye in the left hand side which corresponds to OML Vision or click the ellipsis at the bottom of the sidebar which will expand a selection menu. Select
OML Vision
from there.
- Install homebrew https://brew.sh
- Use scoop to install
git
,nodejs
,nvm
,yarn
andvisual studio code
if not already installed.
brew install git
brew install nodejs
brew install nvm
brew install yarn
brew install openjdk@17
brew install --cask visual-studio-code
- The version of VSCode must be at
1.78.2
or newer. - Install the following VSCode extensions
code --install-extension vscjava.vscode-java-pack
code --install-extension vscjava.vscode-gradle
- Clone OML Vision into your workspace
git clone https://github.com/opencaesar/oml-vision.git
- Open OML Vision in VSCode
- Press F5 on your Keyboard or Ctrl+Shift+D (Windows) or Cmd+Shift+D (macOS) and click the green play button in the upper left that says
Run Extension
. This takes care of building the application in Dev Mode. - Open the OML model repo in Dev mode of OML Vision. Read more here
- IMPORTANT you can’t have the same OML repo open in another instance of vscode. If you try to open a folder in the vision app that is already open in another instance of vscode it just quietly does nothing.
- Click the eye in the left hand side which corresponds to OML Vision or click the ellipsis at the bottom of the sidebar which will expand a selection menu. Select
OML Vision
from there.
- Go to the the home page of the OML Vision Github repo located here
- Open the repo in a code space. Read more here
- IMPORTANT Github Codespaces are not free indefinitely for a personal account under the Github Free tier. Typically Github Codespaces can be used for free for a certain amount of hours per month before a user is billed. Read more here
- In the terminal, run
git switch master
andgit pull
. This will get the latest changes from OML Vision into the codespace. - Press F5 on your Keyboard or Ctrl+Shift+D (Windows) or Cmd+Shift+D (macOS) and click the green play button in the upper left that says
Run Extension
. This takes care of building the application in Dev Mode. - If you get a popup that asks for permission to open the debugger in a new tab or window, click
Continue
. - Open the OML model repo in Dev mode of OML Vision. Read more here
- IMPORTANT you can’t have the same OML repo open in another instance of vscode. If you try to open a folder in the vision app that is already open in another instance of vscode it just quietly does nothing.
- Click the eye in the left hand side which corresponds to OML Vision or click the ellipsis at the bottom of the sidebar which will expand a selection menu. Select
OML Vision
from there. - If the eye does not appear, refresh the browser
Known issues:
- If startFusekiVision exits with error and you see in .fuseki.log that Fuseki is running at port 3030 already, do the following:
- Solution:
lsof -i :[port of running fuseki process]
- Find the PID of the running fuseki process from the result
- Kill the fuseki process:
kill [pid]
- Re-run the gradle task (whether it was owlLoadVision or startFusekiVision)
- Add a breakpoint to a line of code in the
commands
orcontroller
folder - Run VSCode Extension in Development mode
- Breakpoints will allow you to see the stack trace of a line of code in a program within the
commands
orcontroller
folder
- Run VSCode Extension in Development mode
- Hit Ctrl + Shift + P or Cmd + Shift + P to open the VSCode Command Palette
- Search for
Developer: Open Webview Developer Tools
- The developer tools allows you to inspect elements in the webview that come from the
view
folder like a typical React web application - You can view an example of someone debugging a VSCode Code Extension Webview here
- Open any browser and go to the following URL http://localhost:3030/
- Go into the .fuseki/fuseki.log file
- Should see POST API calls