ogkalu2 / Merge-Stable-Diffusion-models-without-distortion

Adaptation of the merging method described in the paper - Git Re-Basin: Merging Models modulo Permutation Symmetries (https://arxiv.org/abs/2209.04836) for Stable Diffusion
MIT License
139 stars 21 forks source link

Please help i can;t use it! #34

Closed xsmilingtoast closed 1 year ago

xsmilingtoast commented 1 year ago

Run show below: E:\Stablediffusion\SHARK-main\Merge-model\Merge-Stable-Diffusion-models-without-distortion-gui>python run_app_gui.py Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\timlo\miniconda3\envs\git_re_sd_wd_gui\lib\threading.py", line 926, in _bootstrap_inner self.run() File "C:\Users\timlo\miniconda3\envs\git_re_sd_wd_gui\lib\threading.py", line 870, in run self._target(*self._args, self._kwargs) File "run_app_gui.py", line 189, in merge_models_thread merge_models(model_a=model_a, model_b=model_b, device=device, output=output, usefp16=usefp16, alpha=alpha, iterations=iterations) File "run_app_gui.py", line 120, in merge_models model_a = torch.load(model_a, map_location=device) File "C:\Users\timlo\miniconda3\envs\git_re_sd_wd_gui\lib\site-packages\torch\serialization.py", line 713, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "C:\Users\timlo\miniconda3\envs\git_re_sd_wd_gui\lib\site-packages\torch\serialization.py", line 920, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '\x11'.

I have no idea at all what pickle is and it happen to multiple model merger i tried , i am loss as hell , please help!