上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页
摘要: 在服务器上,用 vscode 运行 .ipynb 文件是常用的手段,但是搞多了就会发现还是会有各种问题,在这里记录一下。 请先安装 VS Code 的 Jupyter 扩展和 python 扩展。 1. os.environ 的使用 经常在这个运行一个程序前,我们需要加载一些环境变量,来设置比如代理 阅读全文
posted @ 2024-05-16 17:33 Cold_Chair 阅读(3815) 评论(0) 推荐(0)
摘要: 下载单个文件: 首先找到单个文件,点那个下载按钮可以直接下载,又可以右键+复制链接地址,然后在服务器上用 wget 等方式下载这个链接就可以了。 例如: 下载整个仓库: 参考: https://blog.csdn.net/abc13526222160/article/details/13485694 阅读全文
posted @ 2024-05-14 22:17 Cold_Chair 阅读(3643) 评论(0) 推荐(0)
摘要: 参考: https://help.aliyun.com/zh/pai/user-guide/connect-to-a-dsw-instance-over-ssh?spm=a2c4g.11186623.0.0.1f7d993efbY3R0 注: DSW 是多个实例共用磁盘,比起一般的独立服务器访问磁盘 阅读全文
posted @ 2024-04-12 21:41 Cold_Chair 阅读(451) 评论(0) 推荐(0)
摘要: 有的时候太久不配置 git 就又忘干净了,还是记一下把。 本地设置信息: git config --global user.name "coldchair" git config --global user.email "2317757009@qq.com" 这个最好与 github 上面的信息一致 阅读全文
posted @ 2024-04-12 17:49 Cold_Chair 阅读(43) 评论(0) 推荐(0)
摘要: 参考: https://mmdetection.readthedocs.io/zh-cn/latest/get_started.html 有点坑的是安装 mmcv 时去 https://mmcv.readthedocs.io/en/latest/get_started/installation.ht 阅读全文
posted @ 2024-04-05 21:19 Cold_Chair 阅读(386) 评论(0) 推荐(0)
摘要: 读到了这篇文章: https://zhuanlan.zhihu.com/p/527143823 对显存的占用说的很详细: 只有一种情况需要使用 torch.cuda.empty_cache(),就是当你想要释放缓存以便让其他人也可以一起使用当前显卡,否则不需要调用这个方法。 所以这篇博客就图一乐 比 阅读全文
posted @ 2024-03-23 16:49 Cold_Chair 阅读(92) 评论(0) 推荐(0)
摘要: 不知道为啥用了这么久 conda 了还总是能遇到各种问题,哎。 下载:https://www.anaconda.com/download#downloads conda 因为使用 sh 脚本安装的,所以有没有管理员权限都很好装。 在服务器上安装时,记得把目录改为用户目录 ~/ 然后要将环境变量添加到 阅读全文
posted @ 2024-03-18 22:36 Cold_Chair 阅读(70) 评论(0) 推荐(0)
摘要: 操作系统环境:Linux(X86-64) 特权级:用户态 编程语言:C 参考:https://www.cnblogs.com/whileskies/p/13427861.html 写个递归看看汇编怎么跑的(参数这么多是为了用到栈): void dg(int x, int x2, int x3, in 阅读全文
posted @ 2024-03-17 21:03 Cold_Chair 阅读(38) 评论(0) 推荐(0)
摘要: 过了几天发现 WSL 突然用不了了。 上网搜发现一般就是 DNS 的问题。 首先 sudo vim /etc/resolv.conf 把 nameserver 那一行改成 nameserver 8.8.8.8 然后在本机的命令行中重启一下 WSL wsl --shutdown 阅读全文
posted @ 2024-03-09 16:05 Cold_Chair 阅读(348) 评论(0) 推荐(0)
摘要: 这学期不知道为啥搞出两个课用 matlab 先安装 matlab,我校的在这里下载:https://its.tsinghua.edu.cn/ggrj.jsp?urltype=tree.TreeTempUrl&wbtreeid=1079 下载 ISO,点 setup.exe 要填数字密钥:https: 阅读全文
posted @ 2024-03-09 00:18 Cold_Chair 阅读(175) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页