Skip to content

segment anything V2 _path_isfile: path should be string, bytes, os.PathLike or integer, not NoneType #122

@asdsame

Description

@asdsame
Image 秋叶整合包有这个问题,comfyui便携版就没有这个问题 都是下载的新的整合包,模型也都有 Image Image Image

控制台:
`got prompt
FETCH ComfyRegistry Data: 5/106
D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\local_groundingdino\models\GroundingDINO\utils.py:61: SyntaxWarning: invalid escape sequence '\s'

  • memory: bs, \sum{hw}, d_model
    D:\ComfyUI-aki-v2\python\Lib\site-packages\torch\functional.py:554: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\pytorch\aten\src\ATen\native\TensorShape.cpp:4316.)
    return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
    final text_encoder_type: bert-base-uncased
    !!! Exception during processing !!! _path_isfile: path should be string, bytes, os.PathLike or integer, not NoneType
    Traceback (most recent call last):
    File "D:\ComfyUI-aki-v2\ComfyUI\execution.py", line 498, in execute
    output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\execution.py", line 316, in get_output_data
    return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\execution.py", line 290, in async_map_node_over_list
    await process_inputs(input_dict, i)
    File "D:\ComfyUI-aki-v2\ComfyUI\execution.py", line 278, in process_inputs
    result = f(**inputs)
    ^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\segment_anything_ultra_v2.py", line 65, in segment_anything_ultra_v2
    self.DINO_MODEL = load_groundingdino_model(grounding_dino_model)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\segment_anything_func.py", line 121, in load_groundingdino_model
    dino = local_groundingdino_build_model(dino_model_args)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\local_groundingdino\models_init
    .py", line 17, in build_model
    model = build_func(args)
    ^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\local_groundingdino\models\GroundingDINO\groundingdino.py", line 362, in build_groundingdino
    model = GroundingDINO(
    ^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\local_groundingdino\models\GroundingDINO\groundingdino.py", line 97, in init
    self.tokenizer = get_tokenlizer.get_tokenlizer(text_encoder_type)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\ComfyUI\custom_nodes\ComfyUI_LayerStyle_Advance\py\local_groundingdino\util\get_tokenlizer.py", line 19, in get_tokenlizer
    tokenizer = AutoTokenizer.from_pretrained(text_encoder_type)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\python\Lib\site-packages\transformers\models\auto\tokenization_auto.py", line 1068, in from_pretrained
    return tokenizer_class_fast.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\python\Lib\site-packages\transformers\tokenization_utils_base.py", line 2014, in from_pretrained
    return cls._from_pretrained(
    ^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\python\Lib\site-packages\transformers\tokenization_utils_base.py", line 2052, in _from_pretrained
    slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\python\Lib\site-packages\transformers\tokenization_utils_base.py", line 2260, in _from_pretrained
    tokenizer = cls(*init_inputs, **init_kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ComfyUI-aki-v2\python\Lib\site-packages\transformers\models\bert\tokenization_bert.py", line 114, in init
    if not os.path.isfile(vocab_file):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: _path_isfile: path should be string, bytes, os.PathLike or integer, not NoneType

Prompt executed in 6.17 seconds `

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