Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' #1349

Closed
QuArkType opened this issue Sep 30, 2022 · 36 comments
Closed

RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' #1349

QuArkType opened this issue Sep 30, 2022 · 36 comments
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance

Comments

@QuArkType
Copy link

Describe the bug
When I try to run any prompt in the webui, it shows me this message: "RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'"

To Reproduce
Steps to reproduce the behavior:
1.Run webui-user.bat.
2.Get webui link.
3.Type prompt in txt2img and click generate.
4.See error.

Expected behavior
Images are generated.

Screenshots
image

ERRORLOG:
txt2img: A big turtle.
D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\amp\autocast_mode.py:198: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
warnings.warn('User provided device_type of 'cuda', but CUDA is not available. Disabling')
Error completing request
Arguments: ('A big turtle.', '', 'None', 'None', 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, False, 0.7, 0, False, None, '', False, 1, '', 4, '', True, False) {}
Traceback (most recent call last):
File "D:\SD 2.0\stable-diffusion-webui\modules\ui.py", line 142, in f
res = list(func(*args, **kwargs))
File "D:\SD 2.0\stable-diffusion-webui\webui.py", line 60, in f
res = func(*args, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\modules\txt2img.py", line 41, in txt2img
processed = process_images(p)
File "D:\SD 2.0\stable-diffusion-webui\modules\processing.py", line 351, in process_images
uc = prompt_parser.get_learned_conditioning(len(prompts) * [p.negative_prompt], p.steps)
File "D:\SD 2.0\stable-diffusion-webui\modules\prompt_parser.py", line 104, in get_learned_conditioning
conds = shared.sd_model.get_learned_conditioning(texts)
File "D:\SD 2.0\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 558, in get_learned_conditioning
c = self.cond_stage_model(c)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\modules\sd_hijack.py", line 387, in forward
outputs = self.wrapped.transformer(input_ids=tokens)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 722, in forward
return self.text_model(
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 643, in forward
encoder_outputs = self.encoder(
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 574, in forward
layer_outputs = encoder_layer(
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 316, in forward
hidden_states = self.layer_norm1(hidden_states)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\normalization.py", line 189, in forward
return F.layer_norm(
File "D:\SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\nn\functional.py", line 2503, in layer_norm
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

@QuArkType QuArkType added the bug-report Report of a bug, yet to be confirmed label Sep 30, 2022
@hdhnl
Copy link

hdhnl commented Oct 2, 2022

hi,
same error message on linux. (popos(ubuntu 22.04))
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

@hdhnl
Copy link

hdhnl commented Oct 2, 2022

txt2img: A beautiful girl holding roses on a sunny day by El Greco
Loaded a total of 0 textual inversion embeddings.
Error completing request
Arguments: ('A beautiful girl holding roses on a sunny day by El Greco', '', 'None', 'None', 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, False, 0.7, 0, False, False, None, '', 1, '', 4, '', True, False) {}
Traceback (most recent call last):
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 153, in f
    res = list(func(*args, **kwargs))
  File "/home/nikaskn/stable-diffusion-webui/webui.py", line 63, in f
    res = func(*args, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/txt2img.py", line 41, in txt2img
    processed = process_images(p)
  File "/home/nikaskn/stable-diffusion-webui/modules/processing.py", line 351, in process_images
    uc = prompt_parser.get_learned_conditioning(len(prompts) * [p.negative_prompt], p.steps)
  File "/home/nikaskn/stable-diffusion-webui/modules/prompt_parser.py", line 104, in get_learned_conditioning
    conds = shared.sd_model.get_learned_conditioning(texts)
  File "/home/nikaskn/stable-diffusion-webui/repositories/stable-diffusion/ldm/models/diffusion/ddpm.py", line 558, in get_learned_conditioning
    c = self.cond_stage_model(c)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/sd_hijack.py", line 495, in forward
    outputs = self.wrapped.transformer(input_ids=tokens)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 722, in forward
    return self.text_model(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 643, in forward
    encoder_outputs = self.encoder(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 574, in forward
    layer_outputs = encoder_layer(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 316, in forward
    hidden_states = self.layer_norm1(hidden_states)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/normalization.py", line 189, in forward
    return F.layer_norm(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 2503, in layer_norm
    return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'


txt2img: A beautiful girl holding roses on a sunny day by El Greco
Error completing request
Arguments: ('A beautiful girl holding roses on a sunny day by El Greco', '', 'None', 'None', 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, False, 0.7, 0, False, False, None, '', 1, '', 4, '', True, False) {}
Traceback (most recent call last):
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 153, in f
    res = list(func(*args, **kwargs))
  File "/home/nikaskn/stable-diffusion-webui/webui.py", line 63, in f
    res = func(*args, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/txt2img.py", line 41, in txt2img
    processed = process_images(p)
  File "/home/nikaskn/stable-diffusion-webui/modules/processing.py", line 351, in process_images
    uc = prompt_parser.get_learned_conditioning(len(prompts) * [p.negative_prompt], p.steps)
  File "/home/nikaskn/stable-diffusion-webui/modules/prompt_parser.py", line 104, in get_learned_conditioning
    conds = shared.sd_model.get_learned_conditioning(texts)
  File "/home/nikaskn/stable-diffusion-webui/repositories/stable-diffusion/ldm/models/diffusion/ddpm.py", line 558, in get_learned_conditioning
    c = self.cond_stage_model(c)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/sd_hijack.py", line 495, in forward
    outputs = self.wrapped.transformer(input_ids=tokens)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 722, in forward
    return self.text_model(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 643, in forward
    encoder_outputs = self.encoder(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 574, in forward
    layer_outputs = encoder_layer(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 316, in forward
    hidden_states = self.layer_norm1(hidden_states)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/normalization.py", line 189, in forward
    return F.layer_norm(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 2503, in layer_norm
    return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'


txt2img: A beautiful girl holding roses on a sunny day by El Greco.
Error completing request
Arguments: ('A beautiful girl holding roses on a sunny day by El Greco.', '', 'None', 'None', 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, False, 0.7, 0, False, False, None, '', 1, '', 4, '', True, False) {}
Traceback (most recent call last):
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 153, in f
    res = list(func(*args, **kwargs))
  File "/home/nikaskn/stable-diffusion-webui/webui.py", line 63, in f
    res = func(*args, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/txt2img.py", line 41, in txt2img
    processed = process_images(p)
  File "/home/nikaskn/stable-diffusion-webui/modules/processing.py", line 351, in process_images
    uc = prompt_parser.get_learned_conditioning(len(prompts) * [p.negative_prompt], p.steps)
  File "/home/nikaskn/stable-diffusion-webui/modules/prompt_parser.py", line 104, in get_learned_conditioning
    conds = shared.sd_model.get_learned_conditioning(texts)
  File "/home/nikaskn/stable-diffusion-webui/repositories/stable-diffusion/ldm/models/diffusion/ddpm.py", line 558, in get_learned_conditioning
    c = self.cond_stage_model(c)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/sd_hijack.py", line 495, in forward
    outputs = self.wrapped.transformer(input_ids=tokens)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 722, in forward
    return self.text_model(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 643, in forward
    encoder_outputs = self.encoder(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 574, in forward
    layer_outputs = encoder_layer(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 316, in forward
    hidden_states = self.layer_norm1(hidden_states)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/normalization.py", line 189, in forward
    return F.layer_norm(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 2503, in layer_norm
    return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

Traceback (most recent call last):
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 273, in run_predict
    output = await app.blocks.process_api(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 742, in process_api
    result = await self.call_function(fn_index, inputs, iterator)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 653, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 853, in <lambda>
    fn=lambda x: image_from_url_text(x),
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 81, in image_from_url_text
    if filedata.startswith("data:image/png;base64,"):
AttributeError: 'NoneType' object has no attribute 'startswith'

img2img: 
Error completing request
Arguments: (0, '', '', 'None', 'None', None, None, None, None, 0, 20, 0, 4, 1, False, False, 1, 1, 7, 0.75, -1.0, -1.0, 0, 0, 0, False, 512, 512, 0, False, 32, 0, '', '', 0, '', '', 1, 50, 0, False, 4, 1, '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, None, '', '<p style="margin-bottom:0.75em">Will upscale the image to twice the dimensions; use width and height sliders to set tile size</p>', 64, 0, 1, '', 4, '', True, False) {}
Traceback (most recent call last):
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 153, in f
    res = list(func(*args, **kwargs))
  File "/home/nikaskn/stable-diffusion-webui/webui.py", line 63, in f
    res = func(*args, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/img2img.py", line 119, in img2img
    processed = process_images(p)
  File "/home/nikaskn/stable-diffusion-webui/modules/processing.py", line 333, in process_images
    p.init(all_prompts, all_seeds, all_subseeds)
  File "/home/nikaskn/stable-diffusion-webui/modules/processing.py", line 582, in init
    image = img.convert("RGB")
AttributeError: 'NoneType' object has no attribute 'convert'


txt2img: A beautiful girl holding roses on a sunny day by El Greco.
Error completing request
Arguments: ('A beautiful girl holding roses on a sunny day by El Greco.', '', 'None', 'None', 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, False, 0.7, 0, False, False, None, '', 1, '', 4, '', True, False) {}
Traceback (most recent call last):
  File "/home/nikaskn/stable-diffusion-webui/modules/ui.py", line 153, in f
    res = list(func(*args, **kwargs))
  File "/home/nikaskn/stable-diffusion-webui/webui.py", line 63, in f
    res = func(*args, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/txt2img.py", line 41, in txt2img
    processed = process_images(p)
  File "/home/nikaskn/stable-diffusion-webui/modules/processing.py", line 351, in process_images
    uc = prompt_parser.get_learned_conditioning(len(prompts) * [p.negative_prompt], p.steps)
  File "/home/nikaskn/stable-diffusion-webui/modules/prompt_parser.py", line 104, in get_learned_conditioning
    conds = shared.sd_model.get_learned_conditioning(texts)
  File "/home/nikaskn/stable-diffusion-webui/repositories/stable-diffusion/ldm/models/diffusion/ddpm.py", line 558, in get_learned_conditioning
    c = self.cond_stage_model(c)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/modules/sd_hijack.py", line 495, in forward
    outputs = self.wrapped.transformer(input_ids=tokens)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 722, in forward
    return self.text_model(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 643, in forward
    encoder_outputs = self.encoder(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 574, in forward
    layer_outputs = encoder_layer(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/transformers/models/clip/modeling_clip.py", line 316, in forward
    hidden_states = self.layer_norm1(hidden_states)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/modules/normalization.py", line 189, in forward
    return F.layer_norm(
  File "/home/nikaskn/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/nn/functional.py", line 2503, in layer_norm
    return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

nikaskn=my username
Is there a step missing during installation?

My specs

nikaskn@hdhnl:~$ neofetch
///////////// nikaskn@hdhnl
///////////////////// -------------
///////767//////////////// OS: Pop!_OS 22.04 LTS x86_64
//////7676767676
////////////// Host: 80L0 Lenovo G50-80
/////76767//7676767////////////// Kernel: 5.19.0-76051900-generic
/////767676///76767/////////////// Uptime: 12 hours, 18 mins
///////767676///76767.///7676
/////// Packages: 2384 (dpkg), 19 (flatpak), 10 (snap)
/////////767676//76767///767676//////// Shell: bash 5.1.16
//////////76767676767////76767///////// Resolution: 1366x768
///////////76767676//////7676////////// DE: GNOME 42.3.1
////////////,7676,///////767/////////// WM: Mutter
/////////////*7676///////76//////////// WM Theme: Pop
///////////////7676//////////////////// Theme: Pop [GTK2/3]
///////////////7676///767//////////// Icons: Pop [GTK2/3]
//////////////////////'//////////// Terminal: gnome-terminal
//////.7676767676767676767,////// CPU: Intel i3-4030U (4) @ 1.800GHz
/////767676767676767676767///// GPU: Intel Haswell-ULT
/////////////////////////// Memory: 8188MiB / 15922MiB
/////////////////////
/////////////

@777Denoiser
Copy link

vine boom

@Amidweiz
Copy link

Amidweiz commented Oct 6, 2022

In the COMMAND_LINE= variable in either the webui-user.bat or webui-user.sh, put --precision full --no-half

@Blucknote
Copy link
Contributor

Blucknote commented Oct 8, 2022

Full precision dramatically drops performance. What have I done:

# check if torch supports GPU; this must output "True". You need CUDA 11. installed for this. You might be able to use
# a different version, but this is what I tested.
python -c "import torch; print(torch.cuda.is_available())"
(don't forget activate environment)
# install torch with CUDA support. See https://pytorch.org/get-started/locally/ for more instructions if this fails.
pip install torch --extra-index-url https://download.pytorch.org/whl/cu113

Gotten from https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs

After follow https://pytorch.org/get-started/locally/ I tested on Win11 and error was gone with good performance. full precision does not required

@JacobYin
Copy link

In the COMMAND_LINE= variable in either the webui-user.bat or webui-user.sh, put --precision full --no-half

thx,I tried then it works!

@Deni566
Copy link

Deni566 commented Oct 23, 2022

same question,i cannot run it on my amd cpu

@AsmKawsar83
Copy link

RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

--precision full --no-half
is not working on my Macbook Pro 2019 bootcamp windows 10.
Any help would be greatly appreciated. Thanks

@HonmaKazema
Copy link

The reason is likely to be no GPU in your computer. I also encountered this problem, maybe it's better to download a GPU

@artmiris
Copy link

artmiris commented Dec 2, 2022

В COMMAND_LINE=переменной либо в webui-user.bat, либо webui-user.sh , положить --precision full --no-half

Can you copy the whole string? I tried to insert it in different ways, but it doesn't work. Maybe I'm writing the wrong way

@lemmings189
Copy link

In the COMMAND_LINE= variable in either the webui-user.bat or webui-user.sh, put --precision full --no-half

image

@mezotaken mezotaken added asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance and removed bug-report Report of a bug, yet to be confirmed labels Jan 16, 2023
@CutieAlesia
Copy link

so, I am on an AMD system, which I am aware is not the best for this, but I've been trying to get it to work regardless, however, even with all the suggested solutions(commlandline_args set to full precision and no-half, and some other stuff) I still get the same error

RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

does anyone have any other ideas on how to get it to work?

@CutieAlesia
Copy link

nvm that, for some reason it was not reading it from the webui-user file, upon adding it to the launch.py file it works now

@Sphinxxxx
Copy link

(WSL2 on Windows 10)
Changing webui-user.sh didn't do anything, but adding those flags to the startup command fixed it:

./webui.sh --skip-torch-cuda-test --precision full --no-half

@xuya227939
Copy link

@Sphinxxxx Thank you, this solved my problem.

@Davydayveed
Copy link

The last Two Lines should look like this.

set COMMANDLINE_ARGS= --skip-torch-cuda-test --precision full --no-half

call webui.bat

@JanisZhang
Copy link

(WSL2 on Windows 10) Changing webui-user.sh didn't do anything, but adding those flags to the startup command fixed it:

./webui.sh --skip-torch-cuda-test --precision full --no-half

Thanks, @Sphinxxxx!

It works for me, I'm using Ubuntu 22.04.

@JanisZhang
Copy link

JanisZhang commented Mar 13, 2023

Changing webui-user.sh didn't do anything, but adding those flags to the startup command fixed it:

./webui.sh --skip-torch-cuda-test --precision full --no-half

How to do it, where exactly to add it? There are 180+ lines of code, nothing is clear. Why can't damn programmers ever explain properly? They think everyone should know this.....

The last Two Lines should look like this.
set COMMANDLINE_ARGS= --skip-torch-cuda-test --precision full --no-half
call webui.bat

This does not work. Everything is still

Hey @Ps43ffrFro , just run with this command, it doesn't need to be added to the config file.

use
./webui.sh --skip-torch-cuda-test --precision full --no-half
instead of
/webui.sh

@i7-gr
Copy link

i7-gr commented Mar 19, 2023

it on work ,mac 2020, thanks!

@millbank14
Copy link

"./webui.sh --skip-torch-cuda-test --precision full --no-half"

Where exactly does this go?

@Sphinxxxx
Copy link

@millbank14 - It's what you type when you start the application:

startup-command

@millbank14
Copy link

Thank you, it Worked! Really appreciate!👍🏼

@Charmve
Copy link

Charmve commented Mar 29, 2023

it works on my case.

--skip-torch-cuda-test --no-half --use-cpu all

@LDWX
Copy link

LDWX commented Mar 30, 2023

Changing webui-user.sh didn't do anything, but adding those flags to the startup command fixed it:

./webui.sh --skip-torch-cuda-test --precision full --no-half

How to do it, where exactly to add it? There are 180+ lines of code, nothing is clear. Why can't damn programmers ever explain properly? They think everyone should know this.....

The last Two Lines should look like this.
set COMMANDLINE_ARGS= --skip-torch-cuda-test --precision full --no-half
call webui.bat

This does not work. Everything is still

Hey @Ps43ffrFro , just run with this command, it doesn't need to be added to the config file.

use ./webui.sh --skip-torch-cuda-test --precision full --no-half instead of /webui.sh

确实要在命令行加参数,直接在脚本里加参数如果不懂代码原理,很难加对

@janwilmans
Copy link

Propose: close this issue? or should this be detected and automatically use --no-half ?

@LDWX
Copy link

LDWX commented Apr 25, 2023 via email

@TheStarBoys
Copy link

Really appreciate! I worked for my case, where there's mac m1.

@LDWX
Copy link

LDWX commented May 24, 2023 via email

@vonnie21
Copy link

vonnie21 commented Jun 7, 2023

In the COMMAND_LINE= variable in either the webui-user.bat or webui-user.sh, put --precision full --no-half

can someone show me or post a video on how to do this? because I think I'm doing it wrong and I keep trying but it's not working

@JanisZhang
Copy link

In the COMMAND_LINE= variable in either the webui-user.bat or webui-user.sh, put --precision full --no-half

can someone show me or post a video on how to do this? because I think I'm doing it wrong and I keep trying but it's not working

Hi @vonnie21, try the below command when startup.

./webui.sh --skip-torch-cuda-test --precision full --no-half

image

@vonnie21
Copy link

vonnie21 commented Jun 7, 2023

great that worked! thank you

@Moryanmeena
Copy link

i use it on colab so how should i fix it?

@LDWX
Copy link

LDWX commented Aug 15, 2023 via email

@Nemea0
Copy link

Nemea0 commented Dec 3, 2023

Is it possible to do it without using cpu, but gpu? Cause it's a bit slow though it works

@LDWX
Copy link

LDWX commented Dec 3, 2023 via email

@azelylmz
Copy link

azelylmz commented Feb 3, 2024

Thank you, this worked but ruined the performance. it generates more than 15 minutes :(

"./webui.sh --skip-torch-cuda-test --precision full --no-half"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance
Projects
None yet
Development

No branches or pull requests