当前位置:网站首页>服务器调参实录
服务器调参实录
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(目录)省略。。。。
边栏推荐
- 常用问题排查工具和分析神器,值得收藏
- Esp32 learning notes (49) - esp-wifi-mesh interface use
- Promise details
- 563. slope of binary tree
- Sohu employees encounter wage subsidy fraud. What is the difference between black property and gray property and how to trace the source?
- Unity 全景漫游过程中使用AWSD控制镜头移动,EQ控制镜头升降,鼠标右键控制镜头旋转。
- client-go gin的简单整合六-list-watch二(关于Rs与Pod以及Deployment的完善)
- 【迅为干货】龙芯2k1000开发板opencv 测试
- 617. merge binary tree
- Analysis of key points and difficulties of ES6 promise source code
猜你喜欢

迅为干货 |瑞芯微RK3568开发板TFTP&NFS烧写(上)

JS judge whether the year is a leap year and the number of days in the month

Explain the difference between void 0 and undefined

JVM from getting started to giving up 2: garbage collection

Analysis of key points and difficulties of ES6 promise source code

client-go gin的简单整合六-list-watch二(关于Rs与Pod以及Deployment的完善)

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

Web API、DOM

Unity 全景漫游过程中使用AWSD控制镜头移动,EQ控制镜头升降,鼠标右键控制镜头旋转。
随机推荐
Pytest automated test - easy tutorial (01)
[turn] flying clouds_ Qt development experience
During unity panoramic roaming, AWSD is used to control lens movement, EQ is used to control lens lifting, and the right mouse button is used to control lens rotation.
Flutter 约束容器组件
Biweekly investment and financial report: capital rush yuan universe game
开源漫画服务器Mango
Oracle prompt invalid number
【Matlab印刷字符识别】OCR印刷字母+数字识别【含源码 1861期】
Redux learning (III) -- using Redux saga, writing middleware functions, and splitting reducer files
Promise. All capture error
SQL query. Only the column name is displayed but not the data
SQL language - query statement
网狐游戏服务器房间配置约战定制功能实现
【概率论与数理统计】猴博士 笔记 p41-44 统计量相关小题、三大分布的判定、性质、总体服从正态分布的统计量小题
News web page display
Drawing with qpainter
June training (day 11) - matrix
Flat design, blog website (VIII) code source code
Summary of string processing skills II
Starting from scratch (I)