当前位置: 首页 > news >正文

做网站购买空间多少钱长沙专业外贸网站建设

做网站购买空间多少钱,长沙专业外贸网站建设,网站做非经营性广告需备案,东莞浩智网站建设哪家好本文环境 系统#xff1a;Ubuntu 20.04 64位 内存#xff1a;32G 环境安装 2.1 安装GPU驱动 在英伟达官网根据显卡型号、操作系统、CUDA等查询驱动版本。官网查询链接https://www.nvidia.com/Download/index.aspx?langen-us 注意这里的CUDA版本#xff0c;如未安装CUD…本文环境 系统Ubuntu 20.04 64位 内存32G 环境安装 2.1 安装GPU驱动 在英伟达官网根据显卡型号、操作系统、CUDA等查询驱动版本。官网查询链接https://www.nvidia.com/Download/index.aspx?langen-us 注意这里的CUDA版本如未安装CUDA可以先选择一个版本稍后再安装CUDA. 点击Search 如上图查询到合适的版本为510. 然后可以使用apt安装对应驱动版本使用apt安装更方便一些。 # 安装510版本驱动 sudo apt install nvidia-driver-510 # 查看驱动信息 nvidia-smi 当然你也可以使用官网下载的run文件进行安装 sudo chmod x NVIDIA-Linux-x86_64-510.108.03.run 安装 sudo ./NVIDIA-Linux-x86_64-510.108.03.run 安装步骤操作之后就可以完成安装了 输入nvidia-smi查看显卡 chenchen:~$ nvidia-smi Sat Jun 22 08:50:27 2024 ----------------------------------------------------------------------------- | NVIDIA-SMI 510.39.01 Driver Version: 510.39.01 CUDA Version: 11.6 | |--------------------------------------------------------------------------- | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | || | 0 Tesla M40 On | 00000000:01:00.0 Off | 0 | | N/A 53C P8 17W / 250W | 3MiB / 11520MiB | 0% Default | | | | N/A | -------------------------------------------------------------------------------------------------------------------------------------------------------- | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | || | No running processes found | -----------------------------------------------------------------------------安装CUDA 访问英伟达开发者网站先选择CUDA版本版本要对应2.1中GPU驱动支持的CUDA版本再根据操作系统选择对应CUDA安装命令访问链接https://developer.nvidia.com/cuda-toolkit-archive 如上面安装确定所选择驱动对应的CUDA版本为11.6根据安装命令安装, 以下命令适用Ubuntu 20.04 x86_64, GPU驱动510版本 wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 wget https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.2-510.47.03-1_amd64.deb sudo dpkg -i cuda-repo-ubuntu2004-11-6-local_11.6.2-510.47.03-1_amd64.deb sudo apt-key add /var/cuda-repo-ubuntu2004-11-6-local/7fa2af80.pub sudo apt-get update sudo apt-get -y install cuda2.3 安装Python 3.10 Stable Diffusion WebUI目前最低支持Python 3.10所以直接安装3.10版本安装命令 apt install software-properties-commonadd-apt-repository ppa:deadsnakes/ppaapt updateapt install python3.10python3.10 --verisonPIP设置国内源由于默认源在国外所以安装可能经常会出现timeout等问题使用国内源可以很大程度避免下载包timeout的情况。将如下内容复制到文件~/.pip/pip.conf当中如没有该文件先创建touch ~/.pip/pip.conf。 [global] index-url https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted-host https://pypi.tuna.tsinghua.edu.cn 但是有一种比较推荐的方法就是使用 Anaconda 安装Anaconda 非常推荐使用Anaconda。Anaconda可以便捷获取包且对包能够进行管理同时对Python环境可以统一管理的发行版本。安装命令也很简单 wget https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.shbash ./Anaconda3-5.3.1-Linux-x86_64.sh安装步骤安装Anaconda最后一部选择是否要安装vscode可以选N 建Python3.10.9环境并使用该环境 conda create -n python3.10.9 python3.10.9conda activate python3.10.92.5 安装PyTorch 首先在PyTorch官网查询对应CUDA版本的Torch如上述章节2.2中CUDA 11.6需要安装pytorch1.13.1 # 使用conda安装两种安装方式二选一 conda install pytorch1.13.1 torchvision0.14.1 torchaudio0.13.1 pytorch-cuda11.6 -c pytorch -c nvidia# 使用pip安装两种安装方式二选一 pip install torch1.13.1cu116 torchvision0.14.1cu116 torchaudio0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116我是使用pip安装的 三、部署Stable Diffusion WebUI 3.1 下载stable-diffusion-webui 注意首先激活Python3.10环境 conda activate python3.10.9然后下载stable-diffusion-webui sudo git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git如果遇到项目clone不下来可以使用我下面的加速地址 sudo git clone https://github.moeyy.xyz/https://github.com/AUTOMATIC1111/stable-diffusion-webui.git 安装依赖 cd到stable-diffusion-webui目录安装相应的依赖如有访问网络超时、失败等注意按照章节2.3中设置国内源如果再次失败重试几次一般都可完成安装。 cd stable-diffusion-webui pip install -r requirements_versions.txt pip install -r requirements.txt启动stable-diffusion-webui 安装完成后执行如下启动命令 python launch.py --listen --enable-insecure-extension-access这一步骤会下载一些常用模型如果遇到下载失败根据报错提示在huggingface.co下载模型放到对应目录如下载stable-diffusion-v1-5模型搜索找到https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/main 每次启动都需要输入一长串命令比较麻烦可以写一个shell sudo vim start.sh 里面输入 sudo /home/chen/anaconda3/envs/python3.10.9/bin/python launch.py --listen --enable-insecure-extension-access/home/chen是当前我的用户目录anaconda3创建的虚拟环境是python3.10.9 就写这个python路径anaconda3/envs/python3.10.9 sudo chmod x start.sh 启动项目 chenchen:/data/stable-diffusion-webui$ ./start.sh [sudo] password for chen: Sorry, try again. [sudo] password for chen: Python 3.10.9 (main, Mar 8 2023, 10:47:38) [GCC 11.2.0] Version: v1.9.4 Commit hash: feee37d75f1b168768014e4634dcb156ee649c05 Launching Web UI with arguments: --listen --enable-insecure-extension-access no module xformers. Processing without... No SDP backend available, likely because you are running in pytorch versions 2.0. In fact, you are using PyTorch 1.13.1cu116. You might want to consider upgrading. no module xformers. Processing without... No module xformers. Proceeding without it.You are running torch 1.13.1cu116. The program is tested to work with torch 2.1.2. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version.Use --skip-version-check commandline argument to disable this check.Loading weights [63d370e256] from /data/stable-diffusion-webui/models/Stable-diffusion/a31_style.safetensors Running on local URL: http://0.0.0.0:7860To create a public link, set shareTrue in launch(). Startup time: 14.5s (prepare environment: 2.3s, import torch: 4.9s, import gradio: 1.3s, setup paths: 1.3s, initialize shared: 0.3s, other imports: 1.3s, list SD models: 0.2s, load scripts: 1.5s, create ui: 0.8s, gradio launch: 0.6s). Creating model from config: /data/stable-diffusion-webui/configs/v1-inference.yaml /home/chen/anaconda3/envs/python3.10.9/lib/python3.10/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_downloadTrue.warnings.warn(访问服务器ip:7860 随便画一张图试试
http://www.dnsts.com.cn/news/52438.html

相关文章:

  • 国家建设免费论文网站养生网站建设免费
  • 购物商城网站制作重庆公司名字查重系统
  • 博客类网站模板有没有个人做网站的
  • 网站创意策划方案惠州免费网站建设
  • 网站后台更新文章 前台不显示WordPress多页悬浮菜单
  • 网站优化推广平台90设计网站创建时间
  • 南宁做网站女生学计算机应用技术可以做什么
  • 电子商务网站建设参考书中网可信网站权威数据库
  • 企业邮箱是qq邮箱吗网站树状型结构优化
  • wordpress无法登录后台网站优化哪家最专业
  • 有官网建手机网站吗国外企业建站
  • 鄞州网站设计net手机网站开发
  • 免费的网站建设有哪些公司网站运营包括哪些方面
  • 西安专业建设网站学校网站建设的验收单
  • 成都网站推广营销微信工业园网站建设
  • 做营销网站策划有什么前景广州工商注册核名查询系统
  • 国外好的做电视包装的网站建个网站要多少钱
  • 网站开发交接资料wordpress多用途主题排行
  • 织梦如何制作静态网站模板自己怎么做电商
  • 泸州网站建设唐网互联营销网站建设收费
  • 高端外贸网站制作破解版成年猫咪版永久
  • 外贸建站wordpress网站建设用素材
  • 免费看片网站怎样提高网站点击率
  • 好网站建设网站网站有哪些费用多少钱
  • 网站开发模块学些什么软件志愿者网站 建设方案
  • 微信公众网站开发网站源码设计
  • 开公司如何做网站推广北京logo设计公司哪家好
  • 如何自己做自己的网站视频分享网站建设难吗
  • 营口建设工程质量监督站网站技术支持 东莞网站建设家装
  • 物流网站后台黄州网站建设