depthmap2mask
depthmap2mask copied to clipboard
RuntimeError: Input type (float) and bias type (struct c10::Half) should be the same
File "I:\SD\sd-webui-aki-v4\modules\img2img.py", line 170, in img2img
processed = modules.scripts.scripts_img2img.run(p, *args)
File "I:\SD\sd-webui-aki-v4\modules\scripts.py", line 407, in run
processed = script.run(p, *script_args)
File "I:\SD\sd-webui-aki-v4\extensions\depthmap2mask\scripts\depth2image_depthmask.py", line 97, in run
d_m = sdmg.calculate_depth_maps(p.init_images[0],img_x,img_y,model_type,invert_depth)
File "I:\SD\sd-webui-aki-v4\extensions/depthmap2mask/scripts/depthmap_for_depth2img.py", line 306, in calculate_depth_maps
prediction = model.forward(sample)
File "I:\SD\sd-webui-aki-v4\repositories\midas\midas\dpt_depth.py", line 166, in forward
return super().forward(x).squeeze(dim=1)
File "I:\SD\sd-webui-aki-v4\repositories\midas\midas\dpt_depth.py", line 114, in forward
layers = self.forward_transformer(self.pretrained, x)
File "I:\SD\sd-webui-aki-v4\repositories\midas\midas\backbones\swin_common.py", line 10, in forward_swin
return forward_default(pretrained, x)
File "I:\SD\sd-webui-aki-v4\repositories\midas\midas\backbones\utils.py", line 64, in forward_default
exec(f"pretrained.model.{function_name}(x)")
File "