我在运行以上程序时出现了以下错误:Traceback (most recent call last):
File "E:\PycharmProjects\mobilenet-yolov4-pytorch-main\mobilenet-yolov4-pytorch-main\summary.py", line 8, in
from nets.yolo import YoloBody
File "E:\PycharmProjects\mobilenet-yolov4-pytorch-main\mobilenet-yolov4-pytorch-main\nets\yolo.py", line 7, in
from .densenet import _Transition, densenet121, densenet169, densenet201
File "E:\PycharmProjects\mobilenet-yolov4-pytorch-main\mobilenet-yolov4-pytorch-main\nets\densenet.py", line 8, in
from torchvision.models.utils import load_state_dict_from_url
ModuleNotFoundError: No module named 'torchvision.models.utils'
import torch from thop import clever_format, profile from torchsummary import summary
from nets.yolo import YoloBody
if name == "main": input_shape = [416, 416] anchors_mask = [[6, 7, 8], [3, 4, 5], [0, 1, 2]] num_classes = 80 backbone = 'mobilenetv1'
我在运行以上程序时出现了以下错误:Traceback (most recent call last): File "E:\PycharmProjects\mobilenet-yolov4-pytorch-main\mobilenet-yolov4-pytorch-main\summary.py", line 8, in
from nets.yolo import YoloBody
File "E:\PycharmProjects\mobilenet-yolov4-pytorch-main\mobilenet-yolov4-pytorch-main\nets\yolo.py", line 7, in
from .densenet import _Transition, densenet121, densenet169, densenet201
File "E:\PycharmProjects\mobilenet-yolov4-pytorch-main\mobilenet-yolov4-pytorch-main\nets\densenet.py", line 8, in
from torchvision.models.utils import load_state_dict_from_url
ModuleNotFoundError: No module named 'torchvision.models.utils'