Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Create & Launch projects through Command Line [Windows]

In PEKAT VISION Windows version, it is possible to create, launch projects, choose GPU… through CMD.

Create Project through CMD

Target Directory Example

C:\Program Files\PEKAT VISION 3.11.4\starter

Create Project - Help Command

.\pekat-vision.exe create -h 

Create Project - Usage Example

.\pekat-vision.exe create -d C:\Users\User1\PekatVisionProjects\NewProject35 -n NewProject35

The command above will create a new project in the directory:C:\Users\User1\PekatVisionProjects\NewProject35

The project name in Projects Manager is defined as NewProject35.

To display the project in projects manager UI, the user must use 'Open Project' in Projects Manager UI and select the target folder, in order to update Projects Manager UI

Launch Project through CMD

Target Directory Example

C:\Program Files\PEKAT VISION 3.11.7\starter

Launch Project - Help Command

.\pekat-vision.exe start -h

Launch Project (without log)

.\pekat-vision.exe start -p 8000 -d C:\Users\Daniel\PekatVisionProjects\NewProjects35

Launch Project (with log)

.\pekat-vision.exe start -p 8000 -d C:\Users\Daniel\PekatVisionProjects\NewProjects35 -l

Optional Arguments

-l

Shows all logs in the command line. Without this parameter the logs are only saved in a file.

-key

Starts the project with Secure image analyze enabled and sets the API key to given value.

-g

Starts the project on a specific GPU

.\pekat-vision.exe start -p port_number -d path_to_project -g gpu_number -l

Note: GPU numbers start from 0

Example for running 2 projects on 2 different GPUs

While in PEKAT installation folder, run this command in cmd to start project on GPU 0

.\pekat-vision.exe start -p 8000 -d path_to_project1 -g 0 -l

Open another cmd and run this command to start project on GPU 1

.\pekat-vision.exe start -p 8010 -d path_to_project2 -g 1 -l

When projects are started, open them in browser on http://localhost:8000 and http://localhost:8010

Optional arguments:
  -h, --help            Show this help message and exit.
  
  -p PORT, --port PORT  Defines starting port
  
  -d DATA, --data DATA  Project directory
  
  -l LOG, --log LOG     Show all logs (y/n)
  
  -P PASSWORD, --password PASSWORD (Administration password)
  
  -key API_KEY, --api_key API_KEY (Image analyze only with API key)
                  

  • No labels