Errors

#3
by AlgiAlgi - opened

So I've tryed every solution I can find by renaming files and correcting paths but I can't for the life of me get this to work.. It seems to be that there is some issue with the new unet/text encoder files, names or what ever something with them is giving errors..

Please look in to this I would love to try out your product!

(PowerPaint) PS D:\SDXL\Powerpaint\mmagic\projects\powerpaint> python gradio_PowerPaint.py
text_encoder\model.safetensors not found
Loading pipeline components...: 29%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 2/7 [00:00<00:00, 5.64it/s]text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["id2label"] will be overriden.
text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["bos_token_id"] will be overriden.
text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["eos_token_id"] will be overriden.
Loading pipeline components...: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 7/7 [00:06<00:00, 1.15it/s]
01/17 10:01:06 - mmengine - INFO - Successfully add external embeddings: P_ctxt, P_shape, P_obj.
01/17 10:01:06 - mmengine - INFO - Successfully add trainable external embeddings: P_ctxt, P_shape, P_obj
Traceback (most recent call last):
File "D:\SDXL\Powerpaint\mmagic\projects\powerpaint\gradio_PowerPaint.py", line 38, in
torch.load('./models/text_encoder/pytorch_model.bin'), strict=False)
File "C:\Users\alexg\miniconda3\envs\PowerPaint\lib\site-packages\torch\serialization.py", line 1028, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\alexg\miniconda3\envs\PowerPaint\lib\site-packages\torch\serialization.py", line 1246, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: unpickling stack underflow
(PowerPaint) PS D:\SDXL\Powerpaint\mmagic\projects\powerpaint> python gradio_PowerPaint.py
unet\diffusion_pytorch_model.safetensors not found
Loading pipeline components...: 57%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹ | 4/7 [00:00<00:00, 7.72it/s]text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["id2label"] will be overriden.
text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["bos_token_id"] will be overriden.
text_config_dict is provided which will be used to initialize CLIPTextConfig. The value text_config["eos_token_id"] will be overriden.
Loading pipeline components...: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 7/7 [00:06<00:00, 1.10it/s]
01/17 10:02:55 - mmengine - INFO - Successfully add external embeddings: P_ctxt, P_shape, P_obj.
01/17 10:02:55 - mmengine - INFO - Successfully add trainable external embeddings: P_ctxt, P_shape, P_obj
Traceback (most recent call last):
File "D:\SDXL\Powerpaint\mmagic\projects\powerpaint\gradio_PowerPaint.py", line 38, in
torch.load('./models/text_encoder/pytorch_model.bin'), strict=False)
File "C:\Users\alexg\miniconda3\envs\PowerPaint\lib\site-packages\torch\serialization.py", line 1028, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\alexg\miniconda3\envs\PowerPaint\lib\site-packages\torch\serialization.py", line 1246, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: unpickling stack underflow
(PowerPaint) PS D:\SDXL\Powerpaint\mmagic\projects\powerpaint>

Some of the errors I've been getting..

You can try using the code from this repository: https://github.com/zhuang2002/PowerPaint.

Additionally, we have updated the model weights on Hugging Face. You can proceed to re-download them.

Sign up or log in to comment