eyriewow / merge-models

Merges two latent diffusion models at a user-defined ratio
262 stars 24 forks source link

_pickle.UnpicklingError: could not find MARK #12

Open SwastikGorai opened 1 year ago

SwastikGorai commented 1 year ago

I was running the merge.py file in Google Colab by loading two models from civitai. But it gives an Unpickling error.


  File "mergee.py", line 17, in <module>
    model_0 = torch.load(args.model_0, map_location=device)
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 795, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 1002, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: could not find MARK