Register the dataset, config file and result path. You need to have the data model downloaded.
neurocaas_contrib only allows to register one data file and one configuration file. In this case, we need to manage a configuration file that allows to control the input parameters of the server script, as well as another configuration file that reads the server to manage other parameters. To implement this, the bash script that runs the server receives:
A yaml file as a configuration file (config_rtsp.yml):
send: video
cfg_filename: dlc_config.json
path_cfg_file: Documents/DeepLabCut-live-GUI/config/
model_file: DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz
A zip file (rtsp_input.zip) with the model data (DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz) and the configuration file it requires (dlc_config.json).
Bash script to run webrtc and rtsp in neurocaas pipeline
Bash scripts are created to run webrtc and rtsp on the ec2 server deployed by the neurocaas pipeline.
Test locally
The test is performed on a local machine, in order to validate the operation of each script:
This requires to have installed the repos containing the solution of webrtc and rtsp (in the
rtmp-livestream
branch).The data used are:
DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz
dlc_config,json
dlc_config,json
Each of these configuration files are located in the repo of each solution.
WEBRTC
To test webrtc locally, we proceeded as follows:
Create a temporal folder, s3 folder to save the pipeline process
Initialize the job
Register the dataset, config file and result path. You need to have the data model downloaded
Change permission to script
Run the script locally
RTSP
To test rtsp locally, we proceeded as follows:
Create a temporal folder, s3 folder to save the pipeline process
Initialize the job
Register the dataset, config file and result path. You need to have the data model downloaded. neurocaas_contrib only allows to register one data file and one configuration file. In this case, we need to manage a configuration file that allows to control the input parameters of the server script, as well as another configuration file that reads the server to manage other parameters. To implement this, the bash script that runs the server receives:
config_rtsp.yml
):rtsp_input.zip
) with the model data (DLC_Dog_resnet_50_iteration-0_shuffle-0.tar.gz
) and the configuration file it requires (dlc_config.json
).To register the files, we proceed in the same way
Change permission to script
Run the script locally
NOTE : The difference between the files
run_*_cli.sh
(committed) andrun_*_local.sh
(mentioned here) is the path indicated in theuserhome
variable