stablediffusion吧 关注:50,338贴子:212,264
  • 3回复贴,共1

【求助】使用cn的open pose 无法出图,提示如下

取消只看楼主收藏回复


NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.
用时:7.6 sec.


1楼2024-03-29 13:28回复


    2楼2024-03-29 13:29
    回复
      2026-05-22 12:12:53
      广告
      不感兴趣
      开通SVIP免广告
      File "F:\SD\sd-webui-aki-v4.6.1\modules\processing.py", line 1257, in sample
      samples = self.sampler.sample(self, x, conditioning, unconditional_conditioning, image_conditioning=self.txt2img_image_conditioning(x))
      File "F:\SD\sd-webui-aki-v4.6.1\modules\sd_samplers_kdiffusion.py", line 234, in sample
      samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs))
      File "F:\SD\sd-webui-aki-v4.6.1\modules\sd_samplers_common.py", line 261, in launch_sampling
      return func()
      File "F:\SD\sd-webui-aki-v4.6.1\modules\sd_samplers_kdiffusion.py", line 234, in <lambda>
      samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs))
      File "F:\SD\sd-webui-aki-v4.6.1\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
      return func(*args, **kwargs)
      File "F:\SD\sd-webui-aki-v4.6.1\repositories\k-diffusion\k_diffusion\sampling.py", line 128, in sample_euler
      denoised = model(x, sigma_hat * s_in, **extra_args)
      File "F:\SD\sd-webui-aki-v4.6.1\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
      return self._call_impl(*args, **kwargs)
      File "F:\SD\sd-webui-aki-v4.6.1\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
      return forward_call(*args, **kwargs)
      File "F:\SD\sd-webui-aki-v4.6.1\modules\sd_samplers_cfg_denoiser.py", line 269, in forward
      devices.test_for_nans(x_out, "unet")
      File "F:\SD\sd-webui-aki-v4.6.1\modules\devices.py", line 255, in test_for_nans
      raise NansException(message)
      modules.devices.NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.
      ---


      3楼2024-03-29 13:29
      回复
        有没有懂的老哥


        4楼2024-03-29 13:54
        回复