RuntimeError: Input type (CPUBFloat16Type) and weight type (torch.DoubleTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor
RuntimeError: Input type (CPUBFloat16Type) and weight type (torch.DoubleTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensorTraceback (most recent call last):File “/home/user/.local/lib/python3.8/site-packages/gradio/routes.py”, line 275, in run_predictoutput = await app.blocks.process_api(File “/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py”, line 760, in process_apiresult = await self.call_function(fn_index, inputs, iterator)File “/home/user/.local/lib/python3.8/site-packages/gradio/blocks.py”, line 671, in call_functionprediction = await anyio.to_thread.run_sync(File “/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py”, line 31, in run_syncreturn await get_asynclib().run_sync_in_worker_thread(File “/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 937, in run_sync_in_worker_threadreturn await futureFile “/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py”, line 867, in runresult = context.run(func, *args)File “app.py”, line 118, in predictimages = pipe(prompt = prompt, init_image=init_image, mask_image=mask, strength=0.8)[“sample”]File “/home/user/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py”, line 27, in decorate_contextreturn func(*args, **kwargs)File “/home/user/app/inpainting.py”, line 97, incallinit_latent_dist = self.vae.encode(init_image).latent_distFile “/home/user/.local/lib/python3.8/site-packages/diffusers/models/vae.py”, line 549, in encodeh = self.encoder(x)File “/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 1130, in _call_implreturn forward_call(*input, **kwargs)File “/home/user/.local/lib/python3.8/site-packages/diffusers/models/vae.py”, line 117, in forwardsample = self.conv_in(sample)File “/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/module.py”, line 1130, in _call_implreturn forward_call(*input, **kwargs)File “/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 457, in forwardreturn self._conv_forward(input, self.weight, self.bias)File “/home/user/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py”, line 453, in _conv_forwardreturn F.conv2d(input, weight, bias, self.stride,RuntimeError: Input type (CPUBFloat16Type) and weight type (torch.DoubleTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor