Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Empty file added logs/runtime/.gitkeep
Empty file.
8 changes: 6 additions & 2 deletions record.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ host=0.0.0.0
port=2233

kill -9 $(ps aux | grep '[b]lrec' | awk '{print $2}')
nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH/logs/blrec.log 2>&1 &
echo "blrec run success!"
nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH/logs/runtime/blrec-$(date +%Y%m%d-%H%M%S).log 2>&1 &
if [ $? -eq 0 ]; then
echo "success"
else
echo "An error occurred while starting blrec. Check the logs for details."
fi
2 changes: 1 addition & 1 deletion scan.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# kill the previous scanSegments process
kill -9 $(ps aux | grep 'src.burn.scan' | grep -v grep | awk '{print $2}')
# start the scanSegments process
python -m src.burn.scan
nohup python -m src.burn.scan > $BILIVE_PATH/logs/runtime/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Check if the last command was successful
if [ $? -eq 0 ]; then
echo "success"
Expand Down
2 changes: 1 addition & 1 deletion settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ duration_limit = 1800
out_dir = "./Videos"

[logging]
log_dir = "./logs/blrecLog"
log_dir = "./logs/blrec"
console_log_level = "INFO"
backup_count = 30

Expand Down
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import configparser

# ============================ Your configuration ============================
GPU_EXIST=True
GPU_EXIST=False
# Can be pipeline, append, merge
MODEL_TYPE = "append"
Inference_Model = "small"
Expand Down
3 changes: 1 addition & 2 deletions upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
kill -9 $(ps aux | grep '[u]pload' | awk '{print $2}')
kill -9 $(ps aux | grep '[b]iliup' | awk '{print $2}')
# start the scanSegments process
# nohup $BILIVE_PATH/src/upload/uploadQueue.sh > $BILIVE_PATH/logs/uploadQueue.log 2>&1 &
python -m src.upload.upload
nohup python -m src.upload.upload > $BILIVE_PATH/logs/runtime/upload-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Check if the last command was successful
if [ $? -eq 0 ]; then
echo "success"
Expand Down