Skip to content

AttributeError: module 'supervision' has no attribute 'ColorLookup' #9

@aimpowerment

Description

@aimpowerment

will not work with Comfyui
AttributeError: module 'supervision' has no attribute 'ColorLookup'

`
Traceback (most recent call last):
File "C:\Users\snark\AI_TOOLBOX\ComfyUI\ComfyUI\custom_nodes\ComfyUI_Florence2SAM2_init_.py", line 7, in
from app import process_image
ImportError: cannot import name 'process_image' from 'app'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ComfyUI\ComfyUI\nodes.py", line 2147, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "C:\Users\ComfyUI\ComfyUI\custom_nodes\ComfyUI_Florence2SAM2\__init__.py", line 10, in <module>
    from .app import process_image
  File "C:\Users\ComfyUI\ComfyUI\custom_nodes\ComfyUI_Florence2SAM2\app.py", line 90, in <module>
    BOX_ANNOTATOR = sv.BoxAnnotator(color=COLOR_PALETTE, color_lookup=sv.ColorLookup.INDEX)
                                                                      ^^^^^^^^^^^^^^
AttributeError: module 'supervision' has no attribute 'ColorLookup'

Ive try to upgrade, install supervision by console, look for solution but no way to work it out.

Can anybody help?
cheers

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