目标检测
菜鸡菜鸡,突破自我
这个作者很懒,什么都没留下…
展开
-
模型参数加载失败
训练项目问题在CPU训练项目获得的数据不能直接用在GPU上,反正亦不可。cpu -> cpu或者gpu -> gpu:checkpoint = torch.load('model_parameters.pth')model.load_state_dict(checkpoint)cpu -> gpu 1torch.load('model_parameters.pth', map_location=lambda storage, loc: storage.cuda(1))原创 2022-01-10 15:57:45 · 582 阅读 · 0 评论 -
module ‘cv2.cv2‘ has no attribute ‘face‘
AttributeError: module ‘cv2.cv2’ has no attribute ‘face’ 模块’cv2.cv2’没有属性’face’少装了一个opencv的包,指向下面命令即可解决问题pip install opencv-contrib-python原创 2022-01-04 14:33:41 · 1906 阅读 · 0 评论