找回密码
 立即注册
搜索
查看: 280|回复: 1

stable-diffusion-webui-directml AMD专用版2023/6/17

[复制链接]

979

主题

90

回帖

5万

积分

管理员

积分
53052
发表于 2023-6-13 14:00:05 | 显示全部楼层 |阅读模式
venv "D:\stable-diffusion-webui-directml\venv\Scripts\Python.exe"* m/ E0 v* c4 ~
fatal: No names found, cannot describe anything.! K5 y2 {' g) R, |
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
, v2 O( ~2 r; e8 u/ }3 ^* O9 AVersion: <none>& |$ |& _5 P+ M/ V/ c" n! M5 {$ {
Commit hash: ebf229bd1727a0f8f0d149829ce82e2012ba7318
0 Z, H/ {" c$ ^+ s, {Installing requirements
4 l, G" D" x: Y* @- m5 h) BLaunching Web UI with arguments: --autolaunch( Y1 D( I" T8 @% T
No module 'xformers'. Proceeding without it.
8 a+ d- u# U$ E! ?Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled2 h% w. D' O8 _" d& \
Loading weights [fc2511737a] from D:\stable-diffusion-webui-directml\models\Stable-diffusion\chilloutmix_NiPrunedFp32Fix.safetensors7 p  r7 E5 M$ Y+ R3 I! ]
Creating model from config: D:\stable-diffusion-webui-directml\configs\v1-inference.yaml
( |8 X7 e% {% Q' a( }LatentDiffusion: Running in eps-prediction mode
/ n; \( k6 V: S9 i8 a) {( ~Running on local URL:  http://127.0.0.1:7860( E$ o3 S% N4 y- d8 C- z# d

3 k* a+ k- m$ F# ~To create a public link, set `share=True` in `launch()`.  G. F4 p6 f6 u. |
DiffusionWrapper has 859.52 M params.  P8 A' v) A6 G6 A7 X6 e
Startup time: 15.1s (import torch: 3.6s, import gradio: 2.8s, import ldm: 1.0s, other imports: 4.4s, setup codeformer: 0.1s, load scripts: 1.7s, create ui: 0.7s, gradio launch: 0.7s).
4 }0 I# |* b8 n; D; R: m% \Loading VAE weights found near the checkpoint: D:\stable-diffusion-webui-directml\models\VAE\chilloutmix_NiPrunedFp32Fix.vae.ckpt7 j+ s( l5 E  z2 H! {
Applying optimization: InvokeAI... done.
0 t7 P3 V; c0 N6 J5 X4 B& F: FTextual inversion embeddings loaded(0):
3 @* }4 a; Y4 i' NModel loaded in 5.6s (load weights from disk: 1.1s, create model: 0.8s, apply weights to model: 0.9s, apply half(): 0.5s, load VAE: 0.6s, move model to device: 1.5s).
8 q2 Q; j5 \$ b) [; ~' E) L
; |( d+ i, |6 U4 y; H) [
version:  •  python: 3.10.6  •  torch: 2.0.0+cpu  •  xformers: N/A  •  gradio: 3.31.0  •  checkpoint: fc2511737a( P5 i" J9 |8 @+ e3 J
Git-2.41.0-64-bit! g1 Q4 t* P& d& _
python-3.10.6-amd64
9 Z* R8 e$ \6 ^& n6 q8 W) W3 e

% P( f/ h7 M( E### Installation on Windows 10/11 with NVidia-GPUs using release package
  M- K3 B# g; T  H+ v; s1 X
8 N6 R3 b& l9 h" E1. Download `sd.webui.zip` from [v1.0.0-pre](https://github.com/AUTOMATIC1111 ... ases/tag/v1.0.0-pre) and extract it's contents.! V- J- ]& D8 X4 \
2. Run `update.bat`.
: E  S% S8 {4 X$ m3. Run `run.bat`." c6 L% r9 c+ n
   > For more details see [Install-and-Run-on-NVidia-GPUs](https://github.com/AUTOMATIC1111 ... -Run-on-NVidia-GPUs)
; I0 b- j  T+ g+ P( P- E2 {& g  J! d# n0 w6 \
### Automatic Installation on Windows
$ }: k7 `7 S- c/ F& m: V# C# H
8 q3 }' A. n9 G: I1. Install [Python 3.10.6](https://www.python.org/downloads/release/python-3106/) (Newer version of Python does not support torch), checking "Add Python to PATH".
2 c- {# T( k' w  f% N% Y2 q2. Install [git](https://git-scm.com/download/win).& r9 G! |/ `, V: t- ^7 f" U
3. Download the stable-diffusion-webui-directml repository, for example by running `git clone https://github.com/lshqqytiger/s ... ebui-directml.git`.
9 l) K0 ]. \, q- U4. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user.0 e! i: |% P- Y# t
. S# b! t7 q; n5 A( Q
### Automatic Installation on Linux% }+ d/ I3 u1 H( A6 d7 v: U
5 o7 D; B0 A, n0 U
1. Install the dependencies:' |* o$ v- l" K8 l2 N# P

" T* z' q, E5 R- u: I5 W1 d```bash6 H4 X! Y/ H0 S8 l( T* n$ \% X7 _1 d
# Debian-based:. \% k6 R- @. y* H: b! x
sudo apt install wget git python3 python3-venv
; ], g' b7 R; t# Red Hat-based:
  f3 d1 R# O& Y2 \sudo dnf install wget git python3
5 J& m9 _2 ?) k' Z! m1 q# Arch-based:
  A  r- P+ i9 G$ [sudo pacman -S wget git python3
) v0 L. f$ j% Z1 Q```" R' A! x8 G' C% I

5 j3 G+ g" X% V9 C( ]: T; Y2. Navigate to the directory you would like the webui to be installed and execute the following command:
7 ?% M4 D3 Z$ W: `$ M& d5 o5 D6 R) p: d# B4 L* l+ p4 j/ s8 Y( \& M
```bash
* ~2 z9 O0 h* T2 M& }bash <(wget -qO- https://raw.githubusercontent.co ... bui/master/webui.sh)
" j2 w$ o" l3 M0 D```: E2 d  l) N% }; W# |+ a; H

  Z. `+ j+ d4 h6 t8 W3. Run `webui.sh`.
$ t$ u# u' s# R& L' d4. Check `webui-user.sh` for options.  l4 T& n" Y, ?
8 F; {# j3 q' C$ ?; }/ y
### Installation on Apple Silicon* M$ |1 V1 d$ K8 {  I, `# t( b
2 }# ^' k# N9 h. J
Find the instructions [here](https://github.com/AUTOMATIC1111 ... on-on-Apple-Silicon).
1 }% h8 B3 u7 O4 A& U
4 Y: R1 p9 L4 e, l1 x3 @## Contributing
, h7 Z- W- Q8 x- z4 ]7 g
9 C: z  c; I5 S7 [. fHere's how to add code to this repo: [Contributing](https://github.com/AUTOMATIC1111 ... i/wiki/Contributing); i3 v6 X, K8 b! W1 P

: o8 y$ C/ b* |! p* ?* I( o## Documentation
# F; T$ w9 c1 }$ |3 d, a* \+ F- {0 d! |  Z; x6 s0 Y2 r7 d
The documentation was moved from this README over to the project's [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki).$ A! A! l2 D; y( h, Z6 t8 R* y
! ?  X1 v% w$ P; J% K+ s
## Credits8 X7 J* R4 R" P. T4 `7 V
! V3 ?" H% s2 v: B* \6 w
Licenses for borrowed code can be found in `Settings -> Licenses` screen, and also in `html/licenses.html` file.6 |) ^: O% {& e: @# Y/ W( R
* `9 M3 S; {3 G3 y9 j& S
- Stable Diffusion - https://github.com/CompVis/stable-diffusion, https://github.com/CompVis/taming-transformers
4 S$ y& S$ @, ^/ z9 K% o- k-diffusion - https://github.com/crowsonkb/k-diffusion.git
4 K6 V3 L! H0 h: c; }1 N4 u- GFPGAN - https://github.com/TencentARC/GFPGAN.git% `. o, J/ d6 F! b; l& v9 x/ T
- CodeFormer - https://github.com/sczhou/CodeFormer
0 c% H# e! k2 @- ESRGAN - https://github.com/xinntao/ESRGAN
6 s* N$ c5 y$ b) s7 p; R- SwinIR - https://github.com/JingyunLiang/SwinIR
0 @/ P; v$ P- h" L) J! ^/ v- Swin2SR - https://github.com/mv-lab/swin2sr
$ U8 j9 p* f) M9 a* `' T5 `- LDSR - https://github.com/Hafiidz/latent-diffusion" X9 \3 N: k. O! c. a6 X) o
- MiDaS - https://github.com/isl-org/MiDaS
" A1 f2 m7 F$ g, q- Ideas for optimizations - https://github.com/basujindal/stable-diffusion% X" ]' m! f% Q, f  O8 i
- Cross Attention layer optimization - Doggettx - https://github.com/Doggettx/stable-diffusion, original idea for prompt editing.- D! y) v& R: `- z' {- O
- Cross Attention layer optimization - InvokeAI, lstein - https://github.com/invoke-ai/InvokeAI (originally http://github.com/lstein/stable-diffusion)
' {3 m, }( e8 b+ ?1 |3 u+ m- Sub-quadratic Cross Attention layer optimization - Alex Birch (https://github.com/Birch-san/diffusers/pull/1), Amin Rezaei (https://github.com/AminRezaei0x443/memory-efficient-attention)$ d' [0 d$ i$ F- i
- Textual Inversion - Rinon Gal - https://github.com/rinongal/textual_inversion (we're not using his code, but we are using his ideas).
$ L) J8 P/ Q) r+ |5 k  I/ M- Idea for SD upscale - https://github.com/jquesnelle/txt2imghd
7 S3 c; U7 E2 ]: u) P6 m' E+ }- Noise generation for outpainting mk2 - https://github.com/parlance-zz/g-diffuser-bot
- {: E8 `/ P. a7 v0 _4 {6 M- CLIP interrogator idea and borrowing some code - https://github.com/pharmapsychotic/clip-interrogator
7 z3 T5 \# s7 R: p' L' u  m- Idea for Composable Diffusion - https://github.com/energy-based- ... sion-Models-PyTorch! C0 Q9 O/ m! G- C
- xformers - https://github.com/facebookresearch/xformers
6 k* n) P6 X# k- l% j/ f- DeepDanbooru - interrogator for anime diffusers https://github.com/KichangKim/DeepDanbooru
: Z5 z, N: T9 [4 `% e- Sampling in float32 precision from a float16 UNet - marunine for the idea, Birch-san for the example Diffusers implementation (https://github.com/Birch-san/diffusers-play/tree/92feee6). L, _& `" O  [$ n
- Instruct pix2pix - Tim Brooks (star), Aleksander Holynski (star), Alexei A. Efros (no star) - https://github.com/timothybrooks/instruct-pix2pix  |% y" e- s6 b6 L
- Security advice - RyotaK8 B6 |% M+ S" r( N( o5 {% M3 b
- UniPC sampler - Wenliang Zhao - https://github.com/wl-zhao/UniPC5 H  Y% Z* k$ r. l# M1 U
- TAESD - Ollin Boer Bohan - https://github.com/madebyollin/taesd' Y; [9 j% G: Z1 f/ |3 U6 q' S
- Initial Gradio script - posted on 4chan by an Anonymous user. Thank you Anonymous user.
/ n: T+ x" Q# S3 ]6 A3 n0 S, z- Olive - https://github.com/microsoft/Olive2 J& k  o6 I5 q6 v0 H( E
- (You)
( l3 w7 V0 s: p9 l3 M7 |* C( ?  ?( c1 J( \5 K! p

% g- l3 W, D  h# ?4 j0 ^https://cloud.189.cn/t/FvqQbeZfYrui (访问码:9ur0)
必先安装运行环境:(安装包在网盘根目录下)
1.Git-2.41.0-64-bit
2.python-3.10.6-amd64,注意安装时选中安装"Add Python to PATH"
3.启动器运行依赖。net-dotnet-6.0.11
以上运行环境安装完毕后,打开根目录"webui-user.bat"等待数秒即可打开stable-diffusion-webui,若然是系统自带IE浏览器打开的话,需要手动指定版本更高的Edge进入地址:http://127.0.0.1:7860

0

主题

4

回帖

104

积分

游客

积分
104
发表于 2023-6-13 22:22:48 | 显示全部楼层
下載.看好不好用
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|

GMT+8, 2025-2-25 00:32 , Processed in 0.147836 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表