Skip to content

newbie need help pt3: fail to stream models #52

@lhxmailbox-ai

Description

@lhxmailbox-ai

hi on you comment earlier ..." (Or set them to "BAAI/Emu3.5" / "BAAI/Emu3.5-VisionTokenizer" if you prefer to stream from the Hub and have network access plus the right token.) "

i amended configs/config.py file with the following line:

model_path = "BAAI/Emu3.5"
vq_path = "BAAI/Emu3.5-VisionTokenizer"

when run i got below error, sorry what did i missed out?

==================
(main) root@C.28490594:/workspace/Emu3.5$ python inference.py --cfg configs/config.py
......`
Traceback (most recent call last):
File "/workspace/Emu3.5/inference.py", line 166, in
main()
File "/workspace/Emu3.5/inference.py", line 141, in main
model, tokenizer, vq_model = build_emu3p5(
^^^^^^^^^^^^^
File "/workspace/Emu3.5/src/utils/model_utils.py", line 66, in build_emu3p5
vq_model = build_vision_tokenizer(vq_type, vq_path, device=vq_device, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/Emu3.5/src/vision_tokenizer/init.py", line 12, in build_vision_tokenizer
cfg = OmegaConf.load(osp.join(model_path, "config.yaml"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/main/lib/python3.12/site-packages/omegaconf/omegaconf.py", line 189, in load
with io.open(os.path.abspath(file_), "r", encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/Emu3.5/BAAI/Emu3.5-VisionTokenizer/config.yaml'

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