Closed Codes-Breaker closed 1 year ago
Where did you download midas and how? I mean, if you install the midas repository with the install script and so by restarting your webui then you won't have any issues.
Because the key causing you a problem is present :
https://github.com/isl-org/MiDaS/blob/master/midas/dpt_depth.py#L53
Where did you download midas and how? I mean, if you install the midas repository with the install script and so by restarting your webui then you won't have any issues.
Because the key causing you a problem is present :
https://github.com/isl-org/MiDaS/blob/master/midas/dpt_depth.py#L53
Thank you for the reply. I downloaded from releases tab and placed it under models/midas folder in webui without running any python script
I downloaded this : dpt_swin2_base_384.pt
File "/root/StableDiffusion/stable-diffusion-webui/repositories/midas/midas/dpt_depth.py", line 55, in init hooks=hooks[backbone], KeyError: 'swin2b24_384'
I manually downloaded midas models and placed them in models/midas, when i ran generate the error occured
OS: linux