storyicon / comfyui_segment_anything

Based on GroundingDino and SAM, use semantic strings to segment any element in an image. The comfyui version of sd-webui-segment-anything.
Apache License 2.0
529 stars 67 forks source link

Crash and close, anyone with this error? #46

Open KillyTheNetTerminal opened 5 months ago

KillyTheNetTerminal commented 5 months ago

Loads SAM model: C:\Users\WarMachineV10SSD3\Pictures\SD\ComfyPortable\ComfyUI_windows_portable\ComfyUI\models\sams\sam_vit_b_01ec64.pth (device:CPU) final text_encoder_type: bert-base-uncased C:\Users\WarMachineV10SSD3\Pictures\SD\ComfyPortable\ComfyUI_windows_portable\ComfyUI\venv\lib\site-packages\transformers\modeling_utils.py:907: FutureWarning: The device argument is deprecated and will be removed in v5 of Transformers. warnings.warn( [F D:\a_work\1\s\pytorch-directml-plugin\torch_directml\csrc\engine\dml_tensor_desc.cc:135] Check failed: !is_dim_broadcast || non_broadcast_dim_size == 1

foxydermist commented 5 months ago

I have crash with another error: Requested to load AutoencoderKL Loading 1 new model using extra model: D:\ComfyUI_windows_portable\ComfyUI\models\sams\sam_vit_h_4b8939.pth final text_encoder_type: bert-base-uncased D:\ComfyUI_windows_portable\python_embeded\lib\site-packages\transformers\modeling_utils.py:995: FutureWarning: The device argument is deprecated and will be removed in v5 of Transformers. warnings.warn(

dr-gurn commented 2 months ago

I have crash with the following error:

`Some weights of the model checkpoint at /Users/path-to/ComfyUI/models/bert-base-uncased were not used when initializing BertModel: ['cls.predictions.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.LayerNorm.bias', 'cls.seq_relationship.weight', 'cls.seq_relationship.bias']