国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS

這篇具有很好參考價值的文章主要介紹了Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

1. Environment

  • OS:Ubuntu 22.04 LTS
  • Kernel:5.15.0-60-generic
  • CPU: Intel(R) Xeon(R) Gold 6278C CPU @ 2.60GHz, 8vCPUs?
  • GPU: 1 * NVIDIA V100-PCIe-32G?
  • RAM: 64GB
  • system disk:512?GiB
  • data disk:?2048?GiB
  • Stable Diffusion WebUI version:0cc0ee1 (2023/2/20)

2. Download Stable Diffusion models

Go to?HuggingFace?or?Civitai?to find a model.

Use wget command to download the model

wget https://huggingface.co/andite/anything-v4.0/blob/main/anything-v4.5-pruned.ckpt

Here are some good models for your reference.

2.1. Realistic style models

Stable Diffusion, the original model published by CompVis and StabilityAI.

Chilloutmix

Deliberate

2.2. Anime style models

I would suggest you to start from “Anything” model if you want to draw anime artworks.

Anything

Waifu Diffusion

Hentai Diffusion

DreamShaper

OrangeMix3

3. Install Stable Diffusion WebUI

3.1. Install dependencies

1.Install proprietary Nvidia drivers in order to use CUDA. Then reboot.?

sudo apt update
sudo apt purge *nvidia*
# List available drivers for your GPU
ubuntu-drivers list
sudo apt install nvidia-driver-525

?2.Follow the instructions on?Nvidia Developers?to install CUDA. Reboot again.

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda-repo-ubuntu2204-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2204-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2204-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda

3.Verify the installation?

nvidia-smi
nvcc --version

4.Install Python, wget, git

sudo apt install python3 python3-pip python3-virtualenv wget git

5.Because we need a Pyhon 3.6 enviroment for SD WebUi, we have to install Anaconda

wgt https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# Confirm everything and install it

6.Create a virtual environment of Python 3.10.6

conda create --name sdwebui python=3.10.6

3.2. Clone Stable Diffusion WebUI repository

1.Clone the repository of Stable Diffusion WebUI

cd ~
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

2.Move?.ckpt?models to?stable-diffusion-webui

mv ~/anything-v4.5-pruned.ckpt  ~/stable-diffusion-webui/models/Stable-diffusion/

3.Enter the virtual enviroment

conda activate sdwebui

4.If you want to activate virtual environment in a bash script, add these on the top of?webui-user.sh

eval "$(conda shell.bash hook)"
conda activate sdwebui

3.3. Setup commandline arguments

According to?Wiki,we have to change some commdanline arguments in order to start SD WebUI.

Edit?webui-user.sh

vim webui-user.sh

If the VRAM of GPU is lower than 4GB, add:?COMMANDLINE_ARGS=--medvram --opt-split-attention

If your PC has RAM lower than 8GB, add:?COMMANDLINE_ARGS=--lowvram --opt-split-attention

You could also add?--listen?so you can access the WebUI from other PC on the same network. Or add?--share?to generate a public Gradio link for accessing WebUI while deploying SD WebUI to servers.

3.4. Launch Stable Diffusion WebUI

1.Run?webui.sh, it will install all the dependencies. Then a link should pop up:?http://127.0.0.1:7860?

./webui.sh

2.To access WebUI from other PC on the same network,enter?http://<IP of the PC>:7860?in the address bar of your browser. Don’t forget to open firewall port

sudo ufw allow 7860/tcp
sudo ufw reload

3.5. How to update Stable Diffusion WebUI

1.Get current branch

git rev-parse --short HEAD

2.Pull latest files

git pull

3.If something is broken after updating, roll back to the previous branch

git checkout "branch"

4. How to use Stable Diffusion WebUI

4.1. Prompts

Use “Prompts” and “Ngative Prompts” to tell AI what to draw.

Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

See?Vodly Artist name?and?Danbooru tags?for choosing prompts.

For example, to draw Jeanne from Fate/Grand Order, we type the name of the character and characteristics of her body in the prompt fields.

jeanne d'arc from fate grand order, girl, (best quality), (masterpiece), (high detail), ((full face)), sharp, ((looking at viewer)), ((detailed pupils)), (thick thighs), (((full body))), (large breasts), vagina, nude, nipples

Then type negative prompts.

lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts,signature, watermark, username, blurry, artist name

4.2. Text to image

  1. Go to SD WebUI, type the prompts

    Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

  2. Check?Restore faces

    Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

  3. Clcik?Generate?butoon, it will start generate a image

    Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

  4. You shall see the result at the right panel

    Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

All generated images will be stored at?stable-diffusion-webui/outputs

You can also increase the value of?Batch count?so it will generate multiple images in one run.

Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

4.3. Imge to image

  1. Type the prompts

    Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

  2. Upload a image. Check?Restore faces. Clcik?Generate.

    Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS,stable diffusion,ubuntu,linux

You can change the value of?CFG Scale?and?Denoising strength. The lower the value of?Denoising strength?is, the output would be more similar the original image.

Click?Interrogate Deepboooru?to generate prompts automatically accodring to the image you uploaded.文章來源地址http://www.zghlxwxcb.cn/news/detail-616687.html

References

  • Rombach, R., Blattmann, A., Lorenz, D., Esser, P., & Ommer, B. (2022). High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (pp. 10684-10695).
  • Stable Diffusion web UI Wiki - GitHub
  • Voldy Retard Guide The definitive Stable Diffusion experience ?
  • Install Stable Diffusion WebUI locally on Ubuntu Linux

到了這里,關(guān)于Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Ubuntu 22.04.2 LTS LTS x86_64 安裝 stable-diffusion-webui 【2】基本版本完結(jié)。

    Ubuntu 22.04.2 LTS LTS x86_64 安裝 stable-diffusion-webui 【2】基本版本完結(jié)。

    前篇 Ubuntu 20.04 LTS x86_64 安裝 stable-diffusion-webui_hkNaruto的博客-CSDN博客 內(nèi)容太多,分第二篇繼續(xù) 中途重裝了機器,20.04 ,apt upgrade后自動升級到22.04.2 現(xiàn)狀:起來了,又沒完全起來 啟動日志 界面 獲得階段性成果了。 參考故障處理1. 下載資源,再次啟動 成果啟動,測試1girl看看

    2024年02月16日
    瀏覽(25)
  • Stable Diffusion WebUI 集成 sd-webui-segment-anything sd-webui-inpaint-anything Ubuntu22.04 rtx2060 6G

    Stable Diffusion WebUI 集成 sd-webui-segment-anything sd-webui-inpaint-anything Ubuntu22.04 rtx2060 6G

    下載分割模型(segmentation models): 顯存只有6G,選擇l版本 lllyasviel/ControlNet-v1-1 at main 下載14個.pth模型文件,yaml文件已經(jīng)在models目錄下了 ? 今天下載的新鮮文件,放阿里云盤了 ControlNet-v1-1-20230706 https://www.aliyundrive.com/s/LtpNFP8stg5? 啟動后又開始安裝各種Python依賴。網(wǎng)絡(luò)環(huán)境不行氣

    2024年02月16日
    瀏覽(30)
  • Stable Diffusion WebUI 集成 中文提示詞插件 sd-webui-prompt-all-in-one Ubuntu22.04 rtx2060 6G

    Stable Diffusion WebUI 集成 中文提示詞插件 sd-webui-prompt-all-in-one Ubuntu22.04 rtx2060 6G

    重啟webui,等待依賴安裝結(jié)束 已經(jīng)加載出中文提示詞輸入框了 ?這個模型太拉

    2024年02月16日
    瀏覽(47)
  • Ubuntu18.04本地部署Stable-Diffusion-webui繪畫

    Ubuntu18.04本地部署Stable-Diffusion-webui繪畫

    記錄Ubuntu下安裝Stable-Diffusion-webui,比較簡單,以供參考。 一、安裝cuda 支持安裝的cuda版本可以用nvidia-smi命令查看: ? 顯卡驅(qū)動支持的cuda版本最高是11.4,可以在這里下載對應(yīng)的cuda版本:CUDA Toolkit Archive | NVIDIA Developer(https://developer.nvidia.com/cuda-toolkit-archive)。由于之前安裝別

    2024年02月11日
    瀏覽(24)
  • Ubuntu20.04本地部署Stable-Diffusion-webui AI繪畫環(huán)境

    Ubuntu20.04本地部署Stable-Diffusion-webui AI繪畫環(huán)境

    最近AI繪畫很火,所以想在本地部署個環(huán)境體驗一下。原本打算在Windows下安裝,網(wǎng)上有很多教程,也有很多大佬做了整合包,可是我的Windows系統(tǒng)下的顯卡驅(qū)動版本太低,也沒法升級,只能裝CUDA9,導(dǎo)致安裝torch會出現(xiàn)問題。所以考慮在Ubuntu下安裝,參考了幾篇文章,所幸也安

    2023年04月11日
    瀏覽(40)
  • Ubuntu 20.04 LTS x86_64 安裝 stable-diffusion-webui

    Ubuntu 20.04 LTS x86_64 安裝 stable-diffusion-webui

    Stability AI GitHub - Stability-AI/stablediffusion: High-Resolution Image Synthesis with Latent Diffusion Models https://github.com/AUTOMATIC1111/stable-diffusion-webui Ubuntu 20.04 LTS 安裝 nvidia 驅(qū)動 + cuda 11.8 從開始到放棄!_hkNaruto的博客-CSDN博客 打開一個新終端,配置源 ?編輯~/.condarc 內(nèi)容如下即可。 注意: 以下方

    2024年02月12日
    瀏覽(23)
  • AI畫圖 Ubuntu 20.04.5 LTS x86_64 Docker stable diffusion webui 及 http api接口

    AI畫圖 Ubuntu 20.04.5 LTS x86_64 Docker stable diffusion webui 及 http api接口

    Docker鏡像 參考地址: docker一鍵運行stable diffusion webui,常用插件和功能完備,獲得鏡像后可打包帶走 - 嗶哩嗶哩 nvidia cuda 驅(qū)動 ???????Linux x64 (AMD64/EM64T) Display Driver | 525.116.04 | Linux 64-bit | NVIDIA lora模型下載 熱門Civitai LoRA模型下載第一批合集 Stable Diffusion WebUI - openAI 注

    2024年02月08日
    瀏覽(22)
  • Ubuntu22.04 install Kafka

    kafka quickstart? install kafka

    2024年02月09日
    瀏覽(25)
  • 本地部署stable-diffusion-webui出現(xiàn)Couldn‘t install gfpgan錯誤的解決方法

    根據(jù)網(wǎng)上在前面加網(wǎng)址,或則改鏡像的方法都無法解決,于是手動下載該包 win下載虛擬環(huán)境 進(jìn)入下載stable-diffusion-webui的文件,進(jìn)入 在該目錄下打開終端,運行activate.bat進(jìn)入虛擬環(huán)境,再繼續(xù)下載gfpgan 可以在后面跟鏡像網(wǎng)站加快速度,然后再次回到主界面運行weibui-user.bat即可

    2024年02月11日
    瀏覽(20)
  • How to manually install PCL on ubuntu 18.04

    1. Firstly, need to check which version pcl you need to install on your ubuntu system. PCL download link: https://github.com/PointCloudLibrary/pcl/releases?page=2 https://github.com/PointCloudLibrary/pcl/releases?page=2 Find your version: pcl-1.9.1 ?Then click Assets, and download the source code.zip 2. unzip source_code.zip 3. cd source_code 4. 5.? 6. 7.?

    2024年01月21日
    瀏覽(33)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包