Skip to content

推理时显示找不到ldm.modules.encoders.caption_generator import CaptionGenerator2 #5

Description

@Lindsay284
  1. 报错1,ldm的代码里面没有caption_generator文件
    (tcsinger2) kl@kldeMacBook-Pro TCSinger2 % PYTHONPATH=. python scripts/test_sing.py
    Could not find CUDA deivces and reset CUDA stats and cache
    /opt/homebrew/Caskroom/miniconda/base/envs/tcsinger2/lib/python3.10/site-packages/lightning_fabric/init.py:29: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
    import("pkg_resources").declare_namespace(name)
    Traceback (most recent call last):
    File "/Users/kl/Downloads/projects/TCSinger2/scripts/test_sing.py", line 19, in
    from ldm.modules.encoders.caption_generator import CaptionGenerator2

  2. 报错2,在taming-transformers里,您应该更改了VectorQuantizer并创建了一个VectorQuantizer2,但是我下载的taming-transformers的包里面并无此类。也报错了。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions