上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 76 下一页
摘要: 所有的pytorch模型都离不开下面的几大组件。 Network 创建一个Network类,继承torch.nn.Module,在构造函数中用初始化成员变量为具体的网络层,在forward函数中使用成员变量搭建网络架构,模型的使用过程中pytorch会自动调用forword进行参数的前向传播,构建计 阅读全文
posted @ 2022-06-06 12:58 海_纳百川 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: 创建时间:2021年11月24日17:58:48 2021年12月27日11:39:02 查看docker容器使用的系统资源 docker stats 分别查看docker的镜像和容器占用的空间总大小 docker system df 分别查看单个镜像和容器占用的空间大小 docker system 阅读全文
posted @ 2022-06-02 16:53 海_纳百川 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 使用命令:locale -a;如果出现C.UTF-8,表示系统内支持中文编码,执行export LANG=C.UTF-8&&source /etc/profile 阅读全文
posted @ 2022-06-02 16:50 海_纳百川 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 解决办法:查看ssh运行状态:systemctl status sshd.service,发现服务未启动,尝试使用命令/etc/init.d/sshd start启动服务,结果失败。 使用命令:journalctl -xe查看失败的具体原因,发现:sshd: /lib/libcrypto.so.10 阅读全文
posted @ 2022-06-02 13:03 海_纳百川 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 命令:hdparm -Tt /dev/sdg 阅读全文
posted @ 2022-06-02 13:00 海_纳百川 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 解决办法:vim /etc/motd 阅读全文
posted @ 2022-06-02 12:59 海_纳百川 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 如果是单独使用docker run -it...命令创建容器,则在-it 之后加入 --security-opt seccomp:unconfined 如果是使用docker-comose up命令,则在docker-compose.yml文件中每个容器部分加入 security_opt: - "s 阅读全文
posted @ 2022-06-02 12:58 海_纳百川 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: import os import sys def main(): member_pth = './member' txts = os.listdir(member_pth) member_images = [] # get all image-ID that not deleted from all 阅读全文
posted @ 2022-06-02 12:51 海_纳百川 阅读(63) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8 # 这是一个对mmdet训练结束后的json文件进行可视化的代码 # 主要是对log中记录的各种参数如:cls_loss, box_loss, mAP进行可视化 # 本方法已经经过测试,输出图片在out文件夹中 import json import matplotlib 阅读全文
posted @ 2022-06-02 12:43 海_纳百川 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 用扩展名判断文件格式非常简单,但是有可能是错误的。 jpeg文件有固定的文件头,其文件头的格式如下: ? 1 2 3 start marker | jfif marker | header length | identifier 0xff, 0xd8 | 0xff, 0xe0 | 2-bytes | 阅读全文
posted @ 2022-06-02 11:08 海_纳百川 阅读(264) 评论(0) 推荐(0) 编辑
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 76 下一页
本站总访问量