赞
踩
目录
自定义Movilenet_v2类
class Mobilenet_v2(nn.Module): def __init__(self): super().__init__() model = models.mobilenet_v2(pretrained=True) self.layer=nn.Sequential( model.features, ) def forward(self, x): x=self.layer(x) x = nn.functional.adaptive_avg_pool2d(x, (1, 1)) return x
添加到解析模块
elif m is Mobilenet_v2:
c2=args[0]
args=[]
4.更改yaml文件
# Ultralytics YOLO声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/992205
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。