yurochang
yurochang
> > (omni) [root@mysql04 OmniParser]# python gradio_demo.py --icon_detect_model weights/icon_detect_v1_5/model_v1_5.pt --icon_caption_model florence2 [2025-03-07 01:47:39,461] [警告] easyocr.py:80 - CUDA 和 MPS 均不可用 - 默认为 CPU。注意:此模块使用 GPU 时速度更快。 回溯(最近一次调用最后一次): 文件“/home/OmniParser/gradio_demo.py”,第 72 行,在 yolo_model...
现在有了吗
same problem, I used Ollama method.
> 问题是,`--method local`对于开源嵌入模型来说,这无法开箱即用。 这是因为 OpenAI 模型的工作方式`text-embedding-3-small`。它使用 token ID 作为输入,而开源模型则`nomic-embed-text`使用文本作为输入。 因此,在使用开源模型之前,您需要将 token ID 转换为文本。 > > `graphrag/query/llm/oai/embedding.py`解决方案是在包的“嵌入”功能中添加一行: > > ```python > ... > def embed(self, text: str, **kwargs: Any) -> list[float]:...
Same question, and it seems did not solved in other issues. > Consolidating alternate model issues here: #657