个人常用命令
Published:
Linux
- 统计磁盘 :
du -sh * | grep G
- 查看当前文件夹大小:
du -h --max-depth=1
- 删除指定后缀 :
find -name "*.txt" -exec rm -f '{}' \;
- 创建新用户:
sudo useradd -d /home/dkliang -s /bin/bash -m dkliang
- nni启动:
nnictl create --config config.yml --port
- 个人用户安装tmux
Conda
- 临时使用清华源
pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple
vim ~/.bashrc ~/.condarc
Pytorch
- 查看网络权重:
print(class_model.module.classification[0].weight[0][0][0])
- 分布式启动:
python -m torch.distributed.launch --nproc_per_node=2 --master_port 9823 train_distributed.py
其他
LSC-CNN, Prediction_downscale
改变输出的尺度- 国际时间换算
- DataParallel & DistributedDataParallel分布式训练