Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

AttributeError: 'BertLMHeadModel' object has no attribute 'generate' Error #232

Description

@NguyenDucTam2801

I haved try to run demo.ipynb and i get this error in Image Captioning part.. Then i also try to modify blip.py but i does not change anything. Does anyone solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions