fmujie 发布的文章

训练常用命令


训练常用命令nohup python train.py > outLog.log &nohup挂后台运行,退出Xshell连接无影响,防止断网> outLog.log将输出输出到outLog.log文件&追加模式一般运行该命令后会提示如下:(base) root@d9dcc1730df7:~/data1/fmujie/dpl/cal_fgvc# nohup python train_distributed.py > outNA2245628.log & [1] 14131 (base) root@d9dcc1730df7:~/data1/fmujie/dpl/cal_fgvc# nohup: ignoring input and redirecting stderr to stdout如果忘记这个进程号也没关系ps -...

Git创建本地分支并推送至远程仓库建立关联


老是忘,记一下吧创建 git 仓库:mkdir xxx cd xxx git init touch README.md git add README.md git commit -m "first commit" git remote add origin https://gitee.com/fmujie/xxxx.git git push -u origin "master"已有仓库,只需与远程建立连接cd existing_git_repo git remote add origin https://gitee.com/fmujie/xxx.git git push -u origin "master"以下参考自:Git本地创建分支并推送到远程 - 简书 (jianshu.com)1. 创建本地...

WAMP&Laravel:cURL error 60: SSL certificate problem: unable to get local issuer certificate


WAMP&Laravel:cURL error 60: SSL certificate problem: unable to get local issuer certificate"message": "cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.weixin.qq.com/sns/jscode2session?appid=wxf8b9dbefc889bcaf&secret=3ed00514cbe0a52c6d708a76ba318acd&js_code=0e3zkmFa1Xrd2I0e6lIa...

Python"傻瓜式"处理PPT


业界有一句话,Python除了不能生孩子,其他的都能做。最近处理模型的热图,需要将有无损失函数的图片生成然后放到PPT里去对比,从百十个类别中挑图就很费时间了,调完还需要贴到PPT里,我开始是把每个类别中比较好的图片名记下来,应该当时直接复制到PPT里的,但想着统计一下嘛,后来还得根据类名+图片名从源文件夹中挑,当然,挑了一阵子我感觉不能这么干,还得写个脚本让它自己挑如下:import os import shutil txt_path = "./contrastive.txt" with open(txt_path, 'r', encoding='utf-8') as file: for line in file: print(line.strip()) split_list = line.st...

Linux常用命令-目录操作类


常用命令[root@fmujieserver bin]# ls -l /bin/ | grep sh #列表形式展示 bin目录下所有带sh的项目 -rwxr-xr-x. 1 root root 964536 Apr 1 2020 bash lrwxrwxrwx. 1 root root 10 Nov 17 2022 bashbug -> bashbug-64 -rwxr-xr-x. 1 root root 6964 Apr 1 2020 bashbug-64 -rws--x--x 1 root root 23880 Feb 3 2021 chsh -rwxr-xr-x. 1 root root 11576 Aug 2 2017 fipshmac -rwxr-x...

召唤看板娘