1 Star 0 Fork 0

小生/AnimalDetectyolo

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
summary.py 504 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaosheng 提交于 2022-05-05 22:53 +08:00 . first commit
#--------------------------------------------#
# 该部分代码用于看网络结构
#--------------------------------------------#
import torch
from torchsummary import summary
from nets.yolo import YoloBody
if __name__ == "__main__":
# 需要使用device来指定网络在GPU还是CPU运行
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
m = YoloBody([[6, 7, 8], [3, 4, 5], [0, 1, 2]], 80).to(device)
summary(m, input_size=(3, 416, 416))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/nirenxing/animal-detectyolo.git
git@gitee.com:nirenxing/animal-detectyolo.git
nirenxing
animal-detectyolo
AnimalDetectyolo
master

搜索帮助