https://ubuntu.com/core/docs/networkmanager/configure-wifi-access-points
nmcli d wifi hotspot ifname <interface> ssid <ssid> password <password>Example:
| import os | |
| import shutil | |
| from concurrent.futures import ThreadPoolExecutor | |
| def remove_file(file_path): | |
| try: | |
| os.remove(file_path) | |
| print(f"File '{file_path}' removed successfully.") | |
| except Exception as e: | |
| print(f"Failed to remove file '{file_path}': {e}") |
https://ubuntu.com/core/docs/networkmanager/configure-wifi-access-points
nmcli d wifi hotspot ifname <interface> ssid <ssid> password <password>Example:
| #!/bin/bash | |
| host=$(cat /etc/hostname) | |
| echo "PC Name: ${host}" | |
| cpu=$(cat /proc/cpuinfo | grep "model name" | head -1 | sed "s/model name : //") | |
| echo "CPU: ${cpu}" | |
| motherboard=$(sudo dmidecode -t 2 | grep "Product Name" | sed "s/ Product Name: //") | |
| echo "Motherboard: ${motherboard}" |
| #!/usr/bin/env bash | |
| set -x | |
| LT4_MAJOR=32 | |
| LT4_MINOR_OLD=6 | |
| LT4_MINOR=7 | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" |
| targets=( | |
| 192.168.1.83 # sl-u18-hlc1 | |
| 192.168.2.253 # sl-nano-run5-46 | |
| 192.168.3.220 # sl-tx2nx-run1-jp46 | |
| 192.168.2.246 # sl-nx-run1-jp46 | |
| 192.168.3.73 # sl-run-multicam | |
| ) | |
| # all targets have the same user and password, this can be skipped if the ssh key is already registered | |
| user="<user>" | |
| pass="<password>" # security issue |
| #docker run --gpus=all -it -v /:/host/ nvcr.io/nvidia/pytorch:22.02-py3 | |
| host_folder="/host/tmp/yolov7_results.txt" | |
| rm ${host_folder} | |
| git clone https://github.com/WongKinYiu/yolov7 | |
| cd yolov7 | |
| pip install -qr requirements.txt | |
| pip uninstall opencv-python | |
| pip install opencv-python-headless==4.4.0.40 |
| for (int y = 0; y < height; y++) { | |
| // line pointer | |
| float * ptr_disp = (float *) (disp.getPtr<uchar>(sl::MEM::CPU) + y * disp.getStepBytes(sl::MEM::CPU)); | |
| uchar4* ptr_image = (uchar4*) (img.getPtr<uchar>(sl::MEM::CPU) + y * img.getStepBytes(sl::MEM::CPU)); | |
| for (int x = 0; x < width; x++) { | |
| float px_disp = ptr_disp[x]; | |
| uchar4 px = ptr_image[x]; | |
| } | |
| } |
The data cannot be download like a reference dataset, it needs to be generated. On Linux here's a gist of the command used (more details https://github.com/Unity-Technologies/PeopleSansPeople/tree/main/peoplesanspeople_binaries#running-the-linux-binary):
| # wget https://motchallenge.net/data/MOT17Det.zip | |
| # unzip MOT17Det.zip | |
| # rm -rf MOT17Det/test/ | |
| import configparser | |
| import os | |
| import shutil | |
| import numpy as np | |
| def get_metadata_from_seqinfo(seqinfo_path): |
| # from https://community.tp-link.com/en/home/forum/topic/208022 | |
| # tested on Ubuntu 20.04 with a TP-Link AC1300 | |
| git clone https://github.com/cilynx/rtl88x2bu.git | |
| cd rtl88x2bu | |
| VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) | |
| sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} | |
| sudo dkms add -m rtl88x2bu -v ${VER} | |
| sudo dkms build -m rtl88x2bu -v ${VER} | |
| sudo dkms install -m rtl88x2bu -v ${VER} |