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

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

[复制链接]

986

主题

92

回帖

5万

积分

管理员

积分
55255
发表于 2023-6-13 14:00:05 | 显示全部楼层 |阅读模式
venv "D:\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
* o% l0 c, {) G  z' Xfatal: No names found, cannot describe anything.
' ~5 ]& Z- |7 o- h( sPython 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
9 @4 i/ F& l+ K% \8 C# zVersion: <none>" l+ F8 e# Z2 |" Q, S3 ]  X
Commit hash: ebf229bd1727a0f8f0d149829ce82e2012ba7318
' d* v" l/ r+ ]) `Installing requirements% @' T& i6 d, c7 B2 x( W" R
Launching Web UI with arguments: --autolaunch" I, z) @1 ^2 c& X! M# S
No module 'xformers'. Proceeding without it.  f- @4 v+ R+ \/ ~
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled' m6 P' `: \1 j/ v
Loading weights [fc2511737a] from D:\stable-diffusion-webui-directml\models\Stable-diffusion\chilloutmix_NiPrunedFp32Fix.safetensors
  s5 v; t9 D( d$ q5 R+ S) ~" PCreating model from config: D:\stable-diffusion-webui-directml\configs\v1-inference.yaml, n( o2 u# {* O1 E/ \; j' H3 {
LatentDiffusion: Running in eps-prediction mode1 h- `0 l$ V* Q% X* ^
Running on local URL:  http://127.0.0.1:7860
. W# S: A' V$ Y; `1 T
4 R5 S) w1 k+ aTo create a public link, set `share=True` in `launch()`.
  u; m* \4 s& p! D: jDiffusionWrapper has 859.52 M params.$ m: v5 r6 M: a* ~* k
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).! v4 b% D( P0 ^& m7 Z6 q; d% {
Loading VAE weights found near the checkpoint: D:\stable-diffusion-webui-directml\models\VAE\chilloutmix_NiPrunedFp32Fix.vae.ckpt# Z) G/ F) [$ r/ p' U( r) R7 L' C
Applying optimization: InvokeAI... done.& p$ u' A. D, D. Q) t: z
Textual inversion embeddings loaded(0):. r3 Z2 y# B! {5 l% _% f  R
Model 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).

1 e7 G* \2 F& u% j4 L# v- L3 l) L
7 K  M& R0 ?3 O
version:  •  python: 3.10.6  •  torch: 2.0.0+cpu  •  xformers: N/A  •  gradio: 3.31.0  •  checkpoint: fc2511737a
2 y0 L$ U7 |4 ?9 r3 S
Git-2.41.0-64-bit4 P# b. p. E3 s! w
python-3.10.6-amd64. P% h6 _% J* p) S+ R, n; K/ I

- x. X8 K% C8 {/ o  c### Installation on Windows 10/11 with NVidia-GPUs using release package
; s& b+ R* S1 o, V
3 B! t9 @. e# @+ I- q1. Download `sd.webui.zip` from [v1.0.0-pre](https://github.com/AUTOMATIC1111 ... ases/tag/v1.0.0-pre) and extract it's contents.9 K9 l, l5 O. k3 A( Z' S
2. Run `update.bat`.
- J; B( y$ ]! \3. Run `run.bat`.
- u' u+ Z7 e6 l4 ~   > For more details see [Install-and-Run-on-NVidia-GPUs](https://github.com/AUTOMATIC1111 ... -Run-on-NVidia-GPUs); o8 Y9 Q+ r' P- D

3 [4 g3 N  q( C### Automatic Installation on Windows2 p, E* x2 |' Q2 i% G2 ?6 e

  s* I; \7 Q' \! F( @1. 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".
# r9 n+ I+ E/ I2. Install [git](https://git-scm.com/download/win).
. B0 r  W& H$ z& N6 |7 q9 K0 o' Y3. Download the stable-diffusion-webui-directml repository, for example by running `git clone https://github.com/lshqqytiger/s ... ebui-directml.git`.# m* q: d7 l- q0 e" E
4. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user.: n1 d3 S2 g6 K0 z' Q
. B/ R  W! U' z% k* {8 L
### Automatic Installation on Linux
3 C: @- `( }2 x& g, `
. S2 ~% y; w# w# D/ _, y1. Install the dependencies:
  ^/ G- j5 Z8 Z* c7 q
' g* j) x* }# q8 G9 ]```bash& x' Q3 C# E# f6 i9 k3 a
# Debian-based:
7 a  J" d) l3 E( q8 g% [# Msudo apt install wget git python3 python3-venv' i5 o, B4 G6 B- Z+ I
# Red Hat-based:
! s2 K7 F! z# n: [/ ssudo dnf install wget git python3
# Z6 w. R* V3 M" X5 @: i$ @, v( i# Arch-based:
% F0 k. i- b) K) I, Y  h1 V; {5 r, Xsudo pacman -S wget git python3
( m) I' |$ Y6 F& x8 j```- k! k. V: M9 t0 M* P/ b- z" l

. u$ [% T9 F3 t2 C" o0 L  X5 p0 [5 ?2. Navigate to the directory you would like the webui to be installed and execute the following command:7 T1 z- N) G6 {  f

$ U/ M( p/ n0 g```bash2 a  q- J" p8 r1 ]
bash <(wget -qO- https://raw.githubusercontent.co ... bui/master/webui.sh)
  j( q9 G/ X9 T```
; `, @& b. B' B: ~/ G; R
% ~: c4 L7 |5 _9 V1 H3. Run `webui.sh`., k3 g2 A( g  }' q  E
4. Check `webui-user.sh` for options.
% \6 `  g( @8 G. ]2 C; |. b4 U* R2 H( n& y8 _2 r* Q, L
### Installation on Apple Silicon
! K9 X: m- P# I: D8 `
* V9 X; a3 V& H5 F# ^Find the instructions [here](https://github.com/AUTOMATIC1111 ... on-on-Apple-Silicon).
% o' W* ]9 B/ m7 |+ I' j& l+ e: e7 l/ F+ @+ C' ^
## Contributing9 Q! E) J" N$ s% `8 W: ~  o
# q7 S# d4 [; D% i$ i
Here's how to add code to this repo: [Contributing](https://github.com/AUTOMATIC1111 ... i/wiki/Contributing)
% d- F* d' N& c% ~4 |0 T! s9 J8 M" u7 K) w$ ^1 u+ r
## Documentation
& L3 |6 X6 c5 h# G$ n" b; o3 Y# [8 x, E4 g/ a8 B
The documentation was moved from this README over to the project's [wiki](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki).
  c  Q3 P& u' M* D: W/ Q# t: X1 s( L0 ~5 D
## Credits
: d: S" E. C9 H9 E1 n* j  U- d3 h
" F( s/ [" P: @0 fLicenses for borrowed code can be found in `Settings -> Licenses` screen, and also in `html/licenses.html` file.
& H( E1 [! \& g. L" ?1 U+ g6 S- U. a! I/ H5 B
- Stable Diffusion - https://github.com/CompVis/stable-diffusion, https://github.com/CompVis/taming-transformers, e0 H3 T8 `% G3 V
- k-diffusion - https://github.com/crowsonkb/k-diffusion.git
% S( p* a" e; {& g! J- GFPGAN - https://github.com/TencentARC/GFPGAN.git) Y2 [5 K! Z* C( Y( N
- CodeFormer - https://github.com/sczhou/CodeFormer
  r6 m0 @3 p: c" _9 g- ESRGAN - https://github.com/xinntao/ESRGAN; p0 l$ w7 ?: q5 n$ u# l
- SwinIR - https://github.com/JingyunLiang/SwinIR
7 @/ ^+ K/ \1 V9 |6 Z2 g- Swin2SR - https://github.com/mv-lab/swin2sr  `& [, ^4 u9 C/ I- p, D5 _
- LDSR - https://github.com/Hafiidz/latent-diffusion
: V5 `( O; R- [+ L& r- MiDaS - https://github.com/isl-org/MiDaS
4 }& S3 m  r7 R' z- Ideas for optimizations - https://github.com/basujindal/stable-diffusion$ u  Q) Y4 I4 w! [$ c
- Cross Attention layer optimization - Doggettx - https://github.com/Doggettx/stable-diffusion, original idea for prompt editing.% \- |# {! t9 z: w- q# w  G
- Cross Attention layer optimization - InvokeAI, lstein - https://github.com/invoke-ai/InvokeAI (originally http://github.com/lstein/stable-diffusion), M7 {7 u" O3 Z, n3 X9 w' y5 m* x
- 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)% l7 W7 ~0 ~# S( ~( F7 v
- Textual Inversion - Rinon Gal - https://github.com/rinongal/textual_inversion (we're not using his code, but we are using his ideas).5 g% W- v& @9 ~- s: i- u+ G8 M
- Idea for SD upscale - https://github.com/jquesnelle/txt2imghd! U% U, K8 g0 R( V: _$ j) P
- Noise generation for outpainting mk2 - https://github.com/parlance-zz/g-diffuser-bot
9 B* z; |" G- @+ n: X- ^- CLIP interrogator idea and borrowing some code - https://github.com/pharmapsychotic/clip-interrogator
' k4 E, X- d+ y, x8 V4 o2 C* I- Idea for Composable Diffusion - https://github.com/energy-based- ... sion-Models-PyTorch
( g/ o. J4 _# m" g- Q- xformers - https://github.com/facebookresearch/xformers. t' g5 I, O7 G
- DeepDanbooru - interrogator for anime diffusers https://github.com/KichangKim/DeepDanbooru. p% A: Z$ p- U9 h1 A3 C
- 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)
2 H3 u/ S  U2 E% h- e# t# C- Instruct pix2pix - Tim Brooks (star), Aleksander Holynski (star), Alexei A. Efros (no star) - https://github.com/timothybrooks/instruct-pix2pix& K. B1 K/ c0 M; I
- Security advice - RyotaK
. C& o% N# [4 b: I2 d+ u: K- UniPC sampler - Wenliang Zhao - https://github.com/wl-zhao/UniPC( A# E$ k4 s' r. a' m& T/ ?' [0 `
- TAESD - Ollin Boer Bohan - https://github.com/madebyollin/taesd% L+ ~9 S0 C' R! q6 F1 Z9 T
- Initial Gradio script - posted on 4chan by an Anonymous user. Thank you Anonymous user.$ O+ t9 c9 I( a1 b& F5 d" x& D* L
- Olive - https://github.com/microsoft/Olive( S9 u# w* ?7 N. p. z
- (You)
1 t; U% s3 ?4 ?: ~- K) v- q) z  v  ^2 I2 D! n* r$ G
" u. K# ^8 ]; X. H" _5 w
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, 2026-3-21 11:54 PM , Processed in 0.090223 second(s), 23 queries .

Powered by xyh-moon X3.5

© 2001-2025 Discuz! Team.

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