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

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 0: invalid start byte #92

Open
Cxcer opened this issue Nov 7, 2024 · 0 comments

Comments

@Cxcer
Copy link

Cxcer commented Nov 7, 2024

use AMD Radeon RX6600

!!! Exception during processing !!! 'utf-8' codec can't decode byte 0xb2 in position 0: invalid start byte
Traceback (most recent call last):
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\execution.py", line 317, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\execution.py", line 192, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 317, in main
    boxes = groundingdino_predict(
            ^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 182, in groundingdino_predict
    boxes_filt = get_grounding_output(
                 ^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\custom_nodes\comfyui_segment_anything\node.py", line 170, in get_grounding_output
    outputs = model(image[None], captions=[caption])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\4399-PC\AppData\Roaming\Python\Python312\site-packages\torch\nn\modules\module.py", line 1553, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\4399-PC\AppData\Roaming\Python\Python312\site-packages\torch\nn\modules\module.py", line 1562, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\custom_nodes\comfyui_segment_anything\local_groundingdino\models\GroundingDINO\groundingdino.py", line 231, in forward
    ) = generate_masks_with_special_tokens_and_transfer_map(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Soft\AI-Paint\ComfyUI_windows\ComfyUI\custom_nodes\comfyui_segment_anything\local_groundingdino\models\GroundingDINO\bertwarper.py", line 240, in generate_masks_with_special_tokens_and_transfer_map
    torch.eye(num_token, device=input_ids.device).bool().unsqueeze(0).repeat(bs, 1, 1)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 0: invalid start byte
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

1 participant