水上冰石 2025-10-21 16:57 采纳率: 20%
浏览 11

stablediffusion rtx5060,w11系统,stablediffusion webui 1.10.1版本,启动run.bat文件时报错,如何解决?(相关搜索:显卡驱动)



```bash
E:\stableDiffusion\system\python\lib\site-packages\timm\models\layers\__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
E:\stableDiffusion\system\python\lib\site-packages\torch\cuda\__init__.py:215: UserWarning:
NVIDIA GeForce RTX 5060 Laptop GPU with CUDA capability sm_120 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_50 sm_60 sm_61 sm_70 sm_75 sm_80 sm_86 sm_90.
If you want to use the NVIDIA GeForce RTX 5060 Laptop GPU GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

```

  • 写回答

3条回答 默认 最新

  • 阿里嘎多学长 2025-10-21 17:01
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    解决方案

    根据你的描述,问题可能与显卡驱动有关。尝试以下步骤:

    1. 更新显卡驱动:确保你的显卡驱动程序是最新的。可以在NVIDIA官网下载最新的驱动程序。
    2. 检查显卡驱动版本:确保你的显卡驱动版本兼容Stable Diffusion。RTX 5060需要显卡驱动版本为470或以上。
    3. 重启系统:重启你的系统后,再次启动run.bat文件。
    4. 检查Python环境:确保你的Python环境是最新的,特别是timm和torch库。
    5. 尝试降低显卡占用率:如果以上步骤仍然无法解决问题,可以尝试降低显卡占用率,例如通过修改run.bat文件中的参数。

    核心代码

    # 修改run.bat文件中的参数
    set GPU_ID=0
    set CUDA_VISIBLE_DEVICES=%GPU_ID%
    

    注意 如果以上步骤仍然无法解决问题,请尝试在Stable Diffusion的GitHub仓库中寻找相关issue或问题,或者在CSDN或其他技术论坛中寻求帮助。

    评论

报告相同问题?

问题事件

  • 创建了问题 10月21日