Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Inference container (alpha) for the Substrate version of the Grassland full node

Notifications You must be signed in to change notification settings

grasslandnetwork/substrate_inference_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is archived. Please use https://github.com/grasslandnetwork/inference_container instead

Substrate version of the Grassland Inference Container

Building the image

cd into the repo's root directory

Download the Model to the '/app' Directory

cd app
wget https://downloads.grassland.network/models/p6.pt

Return to the Root Directory and Build the Docker Image

cd ..
docker build -t grassland_substrate_inference_container:0.1 .

Running the container

For DPT (depth detection), create a "weights" directory in the root folder and add the depth models there. Place the detection models inside the "app" directory

Ensure that the Substrate version of the Grassland full node is running first. This inference container assumes that the node is listening for incoming WebSocket traffic on 127.0.0.1:9944

docker run -t --gpus all --rm --network=host grassland_substrate_inference_container:0.1

If you're using a webcam, add "--device=/dev/video0" to ensure that the container can access the webcam

docker run -t --gpus all --rm --device=/dev/video0 --network=host grassland_substrate_inference_container:0.1

Default URL's

The default RTSP URL that it reads from is "rtsp://0.0.0.0:8554/live.stream". Change the RTSP URL to whatever feed you're reading from by appending the following to the end of the "docker run...." command above.

--source [YOUR RTSP URL]

RTSP server and proxy

If you need an RTSP server, the rtsp-simple-server is very good. It's maintained here.

Profile The Model

From root

python -m tests.profile_models

About

Inference container (alpha) for the Substrate version of the Grassland full node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published