个人笔记
sudo apt-get install mplayer
将mp4分解成jpg存储到./img中
mplayer -ao null result_2411.mp4 -vo jpeg:outdir=./img
将./img/*.jpg 所有的图像以10%的大小进行输出./view.gif
convert ./img/*.jpg -resize 30% ./view.gif
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple packages
conda create -n your_env_name python=x.x #创建
pip install -i http://mirrors.aliyun.com/pypi/simple/ labelme --trusted-host mirrors.aliyun.com
conda env export > pytorch_cry.yaml #导出环境yml文件
mercurial
sudo add-apt-repository ppa:tortoisehg-ppa/releases
sudo add-apt-repository ppa:mercurial-ppa/releases
sudo apt-get update
sudo apt-get install mercurial python-nautilus tortoisehg
thg &
修理硬盘
df -h
sudo fdisk -l
sudo ntfsfix /dev/nvme0n1p2
sudo ntfsfix -b -d /dev/sdb2
sudo remount -o remount,rw /dev/sdb2
sudo mount -o big_writes /dev/nvme0n1p2 /media
sudo mount -o loop -t ntfs /dev/nvme0n1p2 /media/data512
du -h --max-depth=1 #查看文件夹大小
cp ../background/* .
bash: /bin/cp: Argument list too long
find ../background/ -name "*" | xargs -i cp {} .
alt + F2
gnome-system-monitor
pkill -kill
screen -r id #进入
screen -r -D #删除并进入
screen -ls
alt a d #退出
free -m
sync #重复
sudo fuser -v /dev/nvidia*
sudo kill 34567
strcmp(studentsElement->Value(), "object") == 0
RuntimeError: CUDA out of memory.
subprocess.CalledProcessError:
CUDA_VISIBLE_DEVICES=3 python tools/train.py
169.254.123.80
sudo mount -t nfs :/volume2/1号车数据 /home/ubuntu1/remote_data/
ls -lR|grep "^-"| wc -l