上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 72 下一页
摘要: linux查看当前文件夹的总磁盘占用量: du -sh . -s选项表示计算总和(sum), -h选项表示以恰当的K/M/G单位展示(human_readable) 阅读全文
posted @ 2022-07-25 16:20 Picassooo 阅读(372) 评论(0) 推荐(0)
摘要: linux创建软连接命令: ln -s [dir1] [dir2] ,dir1是真实的文件夹,dir2是dir1的软链接。 软链接可以理解为,dir2是dir1的快捷方式,进入了dir2,就会自动进入dir1。 例子: ln -s /home/datasets/JHMDB /home/MOC_det 阅读全文
posted @ 2022-07-24 21:52 Picassooo 阅读(37701) 评论(0) 推荐(3)
摘要: pytorch之多GPU使用——#CUDA_VISIBLE_DEVICES使用 #torch.nn.DataParallel() #报错解决 阅读全文
posted @ 2022-07-24 20:20 Picassooo 阅读(151) 评论(0) 推荐(0)
摘要: Python字典保存为Json格式化文件 TypeError: Object of type ‘ndarray‘ is not JSON serializable Python JSON 保存json文件: import json info = {"key_1": "value_1", "key_2 阅读全文
posted @ 2022-07-23 14:06 Picassooo 阅读(1174) 评论(0) 推荐(0)
摘要: 把docker打包成镜像的命令: et cm [镜像名字] [镜像版本说明] 例如: et cm detection pytorch1.11-python3.8-cuda11.4 打包了一个名叫 detection的镜像,镜像中的一些库的版本是pytorch1.11-python3.8-cuda11 阅读全文
posted @ 2022-07-23 10:26 Picassooo 阅读(276) 评论(0) 推荐(0)
摘要: 一般我们会用pip list查看所有安装了的包,但是想快速知道是否安装了某个包时,用 pip show [包名字] 更方便快捷。pip show 命令可以给出包的版本、安装路径、包的作者和包的依赖等信息。 阅读全文
posted @ 2022-07-21 10:11 Picassooo 阅读(4683) 评论(0) 推荐(0)
摘要: 在创建docker时配置较大的共享内存,加入参数--shm-size="15g",设置15g(根据实际情况酌量设置)的共享内存: nvidia-docker run -it --name [container_name] --shm-size="15g" ... 这样可以在训练神经网络时把numbe 阅读全文
posted @ 2022-07-20 23:35 Picassooo 阅读(1876) 评论(0) 推荐(0)
摘要: Shell中的$0、$1、$2的含义 阅读全文
posted @ 2022-07-20 23:29 Picassooo 阅读(350) 评论(0) 推荐(0)
摘要: 花了两天,终于把 Python 的 setup.py 给整明白了 阅读全文
posted @ 2022-07-20 18:36 Picassooo 阅读(40) 评论(0) 推荐(0)
摘要: pip install -r requirements.txt -r, --requirement Install from the given requirements file. This option can be used multiple times. -t: 安装到指定位置。 -e: 安 阅读全文
posted @ 2022-07-20 18:26 Picassooo 阅读(741) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 72 下一页