Extraltodeus / depthmap2mask

Create masks out of depthmaps in img2img
355 stars 35 forks source link

KeyError: 'swin2b24_384' #50

Closed Codes-Breaker closed 1 year ago

Codes-Breaker commented 1 year ago

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

Extraltodeus commented 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

Codes-Breaker commented 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

Thank you for the reply. I downloaded from releases tab and placed it under models/midas folder in webui without running any python script

Codes-Breaker commented 1 year ago

I downloaded this : dpt_swin2_base_384.pt