Skip to content

AttributeError: Can't get attribute 'C3k2' on <module 'ultralytics.nn.modules.block' #78

@duynguyen2019

Description

@duynguyen2019

When I downloaded yolo11n.pt from GitHub and tried the below code

from ultralytics import YOLO
# Load a COCO-pretrained YOLO11n model
model = YOLO("yolo11n.pt")

I got an error AttributeError: Can't get attribute 'C3k2' on <module 'ultralytics.nn.modules.block' from ..local\programs\python\python38\lib\site-packages\ultralytics\nn\modules\block.py'>

python --version
Python 3.8.7

ultralytics
8.2.79

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions