kijai / ComfyUI-KwaiKolorsWrapper

Diffusers wrapper to run Kwai-Kolors model
Apache License 2.0
518 stars 26 forks source link

ChatGLM Exception during processing #21

Closed LankyPoet closed 1 month ago

LankyPoet commented 1 month ago

Hi, thanks for making this. image Whenever I try to load from the ChatGLM node, I get the below error. I followed your readme instructions and have in my models\LLM\checkpoints directory: image

I have tried all 3 quants. Can you help me understand best next steps?

Load TEXT_ENCODER... Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████| 7/7 [00:07<00:00, 1.06s/it] !!! Exception during processing!!! stat: path should be string, bytes, os.PathLike or integer, not NoneType Traceback (most recent call last): File "D:\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\nodes.py", line 190, in loadmodel tokenizer = ChatGLMTokenizer.from_pretrained(text_encoder_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\tokenization_utils_base.py", line 2163, in from_pretrained return cls._from_pretrained( ^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\venv\Lib\site-packages\transformers\tokenization_utils_base.py", line 2397, in _from_pretrained tokenizer = cls(*init_inputs, **init_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\kolors\models\tokenization_chatglm.py", line 101, in __init__ self.tokenizer = SPTokenizer(vocab_file) ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\kolors\models\tokenization_chatglm.py", line 14, in __init__ assert os.path.isfile(model_path), model_path ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen genericpath>", line 30, in isfile TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

LankyPoet commented 1 month ago

I completely cleared out the downloaded files, deleted the node pack directory, then restarted from scratch. Everything works now.

yatoubusha commented 1 month ago

what's difference between your twice operations? i got the same problem.