当前位置:网站首页>服务器调参实录
服务器调参实录
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(目录)省略。。。。
边栏推荐
- sql查询问题,只显示列名 不显示数据
- Simple integration of client go gin six list watch two (about the improvement of RS, pod and deployment)
- Redux learning (I) -- the process of using Redux
- VTK-vtkPlane和vtkCutter使用
- Leetcode hot topic 100 topic 11-15 solution
- Duality-Gated Mutual Condition Network for RGBT Tracking
- RGB-D Salient Object Detection withCross-Modality Modulation and Selection
- 搜狐员工遭遇工资补助诈骗 黑产与灰产有何区别 又要如何溯源?
- Required reading 1: the larger the pattern, the better they know how to speak
- Array information management system reconfiguration preheating (1) how to write basic logic using linear continuous structure?
猜你喜欢

Heartless sword Chinese English bilingual poem 001 Love

Transformer Tracking

socket. IO cross domain stepping pit

Leetcode hot topic 100 topic 11-15 solution

Duality-Gated Mutual Condition Network for RGBT Tracking

【迅为干货】龙芯2k1000开发板opencv 测试

Check whether the filing information of the medical representative is correct

Do you know what the quotation for it talent assignment service is? It is recommended that programmers also understand

Leetcode hot topic 100 topic 6-10 solution

A highly controversial issue
随机推荐
[Xunwei dry goods] opencv test of Godson 2k1000 development board
Throttling and anti shake
Flutter 内外边距
Text overflow failure
Check whether the filing information of the medical representative is correct
The meaning and research significance of mathematical methodology
Array de duplication....
saltstack部署lnmp
搜狐员工遭遇工资补助诈骗 黑产与灰产有何区别 又要如何溯源?
VTK-vtkPlane和vtkCutter使用
Esp32 learning notes (49) - esp-wifi-mesh interface use
Heartless sword Chinese English bilingual poem 001 Love
Redux learning (I) -- the process of using Redux
Shell脚本之启动Nacos服务端
Stack -- one of two common linear structures of linear structure
Mongodb installation
Leetcode hot topic 100 topic 11-15 solution
A promise with bare hands
你知道IT人才外派服务报价是怎样的么?建议程序员也了解下
WPF 数据绑定(四)