Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
duynguyen2019 opened this issue Oct 7, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@duynguyen2019
Copy link

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

@UltralyticsAssistant UltralyticsAssistant added the bug Something isn't working label Oct 7, 2024
@UltralyticsAssistant
Copy link
Member

👋 Hello @duynguyen2019, thank you for submitting an issue to the ultralytics/assets repository 🚀. This is an automated response to help us gather necessary details and an Ultralytics engineer will assist you soon.

To better address your concern, please provide the following information:

  1. Bug Reports:
    • A clear and concise description of the bug you're experiencing.
    • A minimum reproducible example (MRE) that demonstrates the issue. You can refer to our guide here for details.
    • Your environment details, such as:
      • Operating System
      • Python version (you provided 3.8.7)
      • Package versions (Ultralytics version is 8.2.79, please specify others if relevant)
    • Expected behavior vs. actual behavior
    • Any error messages or logs related to the issue, such as the one you received about C3k2.

If you need to add any additional information, please comment on this issue. Also, ensure you've searched existing issues to avoid duplicates. Thank you for your cooperation in helping us improve our project! 🙌🔍

@Zhaonb
Copy link

Zhaonb commented Oct 8, 2024

pip install --upgrade ultralytics

@pderrenger
Copy link
Member

@Zhaonb please try upgrading to the latest version using pip install --upgrade ultralytics and see if the issue persists. If you continue to experience problems, let us know.

@moosich7
Copy link

moosich7 commented Oct 9, 2024

@Zhaonb thank you,I did follow you and resolve the problem like @duynguyen2019's error

@lyc728
Copy link

lyc728 commented Oct 11, 2024

same error I can not solve the problems

@Zhaonb please try upgrading to the latest version using pip install --upgrade ultralytics and see if the issue persists. If you continue to experience problems, let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants