07 2021 档案

摘要:配置本地环境 1,file → open: 打开一个本地环境/文件夹 2,file → settings → Project:xxxx → Python Interpreter: 配置本地环境的解释器 3,Python Interpreter ⚙ → add: 添加解释器 4,Conda Envir 阅读全文
posted @ 2021-07-29 19:30 林東雨 阅读(718) 评论(0) 推荐(0) 编辑
摘要:环境描述 Docker 安装在 Linux 服务器上(ubuntu 系统) 本地 WIN10 通过 PuTTy 访问 Docker 镜像中的 Jupyter notebook 关键操作 1、运行 docker 容器的时候,需要设置“服务器”的端口与“容器”的端口之间的映射 $ docker run 阅读全文
posted @ 2021-07-28 23:06 林東雨 阅读(570) 评论(0) 推荐(0) 编辑
摘要:简言之,torch.nn.Conv2d 的 weight 无法自定义,而需要手动设置 weight 时需要用到 torch.nn.function.conv2d。 参考资料:https://www.freesion.com/article/5206237781/ 阅读全文
posted @ 2021-07-21 19:33 林東雨 阅读(243) 评论(0) 推荐(0) 编辑
摘要:Docker 容器 注意:Linux 服务器上安装 Docker 需要 root 权限,安装完成之后可以设置 Docker 组用户访问 Docker 的权限。 docker 18.09 → 19.03sy 官方文档:https://docs.docker.com/engine/install/ubu 阅读全文
posted @ 2021-07-17 22:15 林東雨 阅读(2665) 评论(0) 推荐(0) 编辑
摘要:du -h --max-depth=1 du -sh * 参考资料 https://zhidao.baidu.com/question/7664445.html 阅读全文
posted @ 2021-07-12 17:37 林東雨 阅读(185) 评论(0) 推荐(0) 编辑
摘要:问题原因:Python装在D盘,系统没有分配虚拟内存 解决方法: 参考资料 https://www.cnblogs.com/20183544-wangzhengshuai/p/14814459.html 阅读全文
posted @ 2021-07-07 16:24 林東雨 阅读(7704) 评论(0) 推荐(2) 编辑
摘要:使用 pathlib 库一键搞定! from pathlib import Path 获取当前路径 cur_path = Path.cwd() 获取上层 or 上上层路径 cur_path.parent cur_path.parent.parent 获取子目录 or 拼接目录 file_path = 阅读全文
posted @ 2021-07-06 23:21 林東雨 阅读(802) 评论(0) 推荐(0) 编辑