Skip to content

程序启动,前端界面无法显示。 #23

@vocal007-hub

Description

@vocal007-hub

有小伙伴遇到这种问题吗?,求助
YOLOv5 torch 2.0.0+cpu CPU

Fusing layers...
Model Summary: 224 layers, 7062001 parameters, 0 gradients
[INFO] loading facial landmark predictor...
Traceback (most recent call last):
File "D:\CV\code\Yolov5-deepsort-driverDistracted-driving-behavior-detection-1.0\main.py", line 94, in show_pic
ret,frame = myframe.frametest(frame)
File "D:\CV\code\Yolov5-deepsort-driverDistracted-driving-behavior-detection-1.0\myframe.py", line 27, in frametest
action = mydetect.predict(frame)
File "D:\CV\code\Yolov5-deepsort-driverDistracted-driving-behavior-detection-1.0\mydetect.py", line 89, in predict
pred = model(img)[0]
File "D:\CV\jupyter\anaconda\envs\mycar\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\CV\code\Yolov5-deepsort-driverDistracted-driving-behavior-detection-1.0\models\yolo.py", line 119, in forward
return self.forward_once(x, profile) # single-scale inference, train
File "D:\CV\code\Yolov5-deepsort-driverDistracted-driving-behavior-detection-1.0\models\yolo.py", line 135, in forward_once
x = m(x) # run
File "D:\CV\jupyter\anaconda\envs\mycar\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\CV\jupyter\anaconda\envs\mycar\lib\site-packages\torch\nn\modules\upsampling.py", line 157, in forward
recompute_scale_factor=self.recompute_scale_factor)
File "D:\CV\jupyter\anaconda\envs\mycar\lib\site-packages\torch\nn\modules\module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions