当前位置:网站首页>服务器调参实录
服务器调参实录
2022-06-11 06:56:00 【煮酒cos】
pycharm部分
- weileiyi实验室的密码和教程都在语雀上,可以自行查看,正版可以用远程连接
- 注意的是要确定好remote的环境安装正确
- 如果是涉及到画图的话,服务器是没法显示的,但是在pycharm的run里面是可以显示的,所以run的功能总体比直接在命令行中运行方便
- 但是run中可以看作为前台运行,很多情况下突然断网,关机意外发生的时候会自动停止,所以在使用长时间运行程序的角度来说不推荐
- 当别人复制给你文件的时候,一定要删除掉.idea这个文件,因为这个文件里面全部都是别人配置好的文件,会和你自己的冲突
学校服务器部分
学校服务器审批很简单,而且简单易用,免费,功能强大,32G内存V100的显卡
首先介绍页面,上传文件直接用数据管理的地方就可以
然后启动控制台就可以进行运行
关于连接pycharm
- 在服务器上设置密码:sudo passwd/passwd 用户名
- 添加自定义服务处添加一个即可得到ssh连接
- 必须要重启才能使用ssh连接的服务
- 服务器上的同步时有一点小问题?反正以pycharm调整为准
服务器常用命令
- 查看显卡:nvidia-smi
- 查看进程:ps/top
- 杀死进程:kill -9 进程号
- 进入目录 cd 删除目录 rm -rf
- 查看全部文件夹 :ls -a
- 挂起进程:nohup python main.py >train.log 2>&1 &
- 移动文件:mv (图形化界面移动更舒服)
- 解压文件:zip
代码部分
文件import
import sys
import os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
# 一定要加这个文件名前缀,否则依然会引入不了
from util import util_freeze
shell脚本
注意后面参数,如果config文件里没有,一定要加上,否则运行不起来,调用用sys.argv[2]即可
array=(6hmCA 6hmCCEL 6hmCCEQ 6hmCD 6hmCF 6hmCH 6hmCR 6hmCS 6hmCTT 6hmCTO 6hmCX)
for((i=0;i<=1;i++));
do
for((j=0;j<=10;j++)) ;
do
nohup python main.py '-train-name' ${array[i]} '-test-name' ${array[j]} >"${array[i]}_${array[j]}.log" 2>&1 &
done
done
plot保存部分
plt.savefig(目录)省略。。。。
边栏推荐
- Check whether the filing information of the medical representative is correct
- 关于组织开展2022年宁波市重点首版次软件申报工作的通知
- saltstack的常用模块
- Promise details
- [MATLAB image encryption and decryption] chaotic sequence image encryption and decryption (including correlation test) [including GUI source code 1862]
- Starting from scratch (IV) enemy aircraft flying out of the border disappear automatically
- 迅为干货 |瑞芯微RK3568开发板TFTP&NFS烧写(上)
- Shuttle inside and outside margins
- Practice: how to reasonably design functions to solve practical problems in software development (I)
- Zabbix 监控主机是否在线
猜你喜欢

socket. IO cross domain stepping pit

Henan college entrance examination vs Tianjin college entrance examination (2008-2021)

双周投融报:资本抢滩元宇宙游戏

byte和bit的区别

The realization of online Fox game server room configuration battle engagement customization function

Do you use typescript or anyscript

无心剑汉英双语诗001.《爱》
![JS implementation of graphic merging and sorting process [source code attached]](/img/c8/210ddab791eb2319519496f7c7d010.jpg)
JS implementation of graphic merging and sorting process [source code attached]

LEARNING TARGET-ORIENTED DUAL ATTENTION FOR ROBUST RGB-T TRACKING

洛谷P1091合唱队形(最长上升子序列)
随机推荐
Sohu employees encounter wage subsidy fraud. What is the difference between black property and gray property and how to trace the source?
WPF 数据绑定(四)
无心剑汉英双语诗001.《爱》
Starting from scratch (I)
How exactly does instanceof judge the reference data type!
VTK-vtkPlane和vtkCutter使用
通过 Ingress 进行灰度发布
Practice: how to reasonably design functions to solve practical problems in software development (II) -- improving reusability
搜狐员工遭遇工资补助诈骗 黑产与灰产有何区别 又要如何溯源?
Reconstruction and preheating of linked list information management system (2) how to write the basic logic using linear discontinuous structure?
100. same tree
572. subtree of another tree
Redux learning (II) -- encapsulating the connect function
Pytest自动化测试-简易入门教程(01)
The difference between arrow function and ordinary function
617. merge binary tree
Summary of string processing skills III
SQL语言-查询语句
About daily report plan
About parseint()