Skip to content

generate_examples/generate.py not working #41

@kimdaeun00

Description

@kimdaeun00

Hi. Thanks for sharing your work.
I have problem for the inference code generate_examples/generate.py .

  File "/Lumina-mGPT/lumina_mgpt/inference_solver.py", line 342, in generate
    generation_result = self.model.generate(
  File "/Lumina-mGPT/venv-luminamgpt/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1709, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'ChameleonForConditionalGeneration' object has no attribute 'generate'

As the error says, I found that ChameleonForConditionalGeneration object doesn't have generate attribute.
Could you help me to generate an image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions