Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on running app.py #33

Open
gebaltso opened this issue Nov 2, 2023 · 0 comments
Open

Error on running app.py #33

gebaltso opened this issue Nov 2, 2023 · 0 comments

Comments

@gebaltso
Copy link

gebaltso commented Nov 2, 2023

Hello! After setup I ran the app.py but get the following error:
`########

v1.0

########

#######################

Running in eps mode

#######################

making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Traceback (most recent call last):
File "app.py", line 582, in
vd_inference = vd_inference(which='v1.0', fp16=True)
File "app.py", line 253, in init
net = get_model()(cfgm)
File "/home/gebaltso/Versatile-Diffusion/lib/model_zoo/common/get_model.py", line 62, in call
net = self.modelt
File "/home/gebaltso/Versatile-Diffusion/lib/model_zoo/vd.py", line 75, in init
self.vae = self.get_model_list(vae_cfg_list)
File "/home/gebaltso/Versatile-Diffusion/lib/model_zoo/vd.py", line 122, in get_model_list
net[name] = get_model()(cfg)
File "/home/gebaltso/Versatile-Diffusion/lib/model_zoo/common/get_model.py", line 72, in call
sd = torch.load(cfg.pth, map_location=map_location)
File "/home/gebaltso/anaconda3/envs/versatile-diffusion/lib/python3.8/site-packages/torch/serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/gebaltso/anaconda3/envs/versatile-diffusion/lib/python3.8/site-packages/torch/serialization.py", line 920, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '<'.`

What can I do to overpass it? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant