Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from supervision.detection.lmm import from_florence_2 ModuleNotFoundError: No module named 'supervision.detection.lmm' #120

Open
dancemanUK opened this issue Nov 11, 2024 · 3 comments

Comments

@dancemanUK
Copy link

File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools_init_.py", line 13, in
from .IFChatPromptNode import IFChatPrompt
File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\IFChatPromptNode.py", line 26, in
from .superflorence import FlorenceModule
File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\superflorence.py", line 16, in
from supervision.detection.lmm import from_florence_2
ModuleNotFoundError: No module named 'supervision.detection.lmm'

Cannot import G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools module for custom nodes: No module named 'supervision.detection.lmm'

@dancemanUK
Copy link
Author

python_embeded>python -s -m pip install florence_2
WARNING: Ignoring invalid distribution - (g:\comfyui+animatediff\python_embeded\lib\site-packages)
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.ngc.nvidia.com/
ERROR: Could not find a version that satisfies the requirement florence_2 (from versions: none)
ERROR: No matching distribution found for florence_2

@if-ai
Copy link
Owner

if-ai commented Nov 11, 2024

I am yet to make the tutorial on how to use this the florence should come up when you use transformer engine and florence2 finetune or base from the list, The others such as flux florence hasn't been teted yet. Selecting florence will attempt to download the model on the LLM folder automatically you might need to have the Huggingface token on your variables, once it is downloaded you should be able to use it without the error.

I am refactoring the code to make this easier and more efficient but florence2 is not a separate module the functionality is coming from my transformers_api file and superflorence so all is in there.

if you still have issues attempt to
python_embeded>python -s -m pip install supervision

@dancemanUK
Copy link
Author

我还没有制作如何使用它的教程,当你使用 transformer engine 和 florence2 finetune 或列表中的 base 时,应该会出现 florence,其他的,如 flux florence 还没有被介绍。选择 florence 将尝试自动下载 LLM 文件夹中的模型,您可能需要在变量上具有 Huggingface 令牌,下载后,您应该能够使用它而不会出现错误。

我正在重构代码以使其更轻松、更高效,但 florence2 不是一个单独的模块,功能来自我的 transformers_api 文件和 superflorence,所以一切都在那里。

如果仍有问题,请尝试python_embeded>python -s -m pip install supervision

Thank you! reinstall supervision , it 's runing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants