From fd2cd33c92632e21e8a41a28b3afe198d774c6e0 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Mon, 7 Aug 2023 22:06:49 +0200 Subject: [PATCH] fixed import and added installation guide --- README.md | 4 +++- __init__.py | 1 + __pycache__/__init__.cpython-39.pyc | Bin 0 -> 198 bytes __pycache__/styles_csv_loader.cpython-39.pyc | Bin 0 -> 2582 bytes 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 __pycache__/__init__.cpython-39.pyc create mode 100644 __pycache__/styles_csv_loader.cpython-39.pyc diff --git a/README.md b/README.md index a2ccfe3..0373d8b 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,15 @@ Extension for [ComfyUI](https://github.com/comfyanonymous/ComfyUI) that loads st ## Description This extension allows users to load styles from a CSV file, primarily for migration purposes from the [automatic1111 Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui). +## Installation +Clone this repository into the `custom_nodes` folder of ComfyUI. Restart ComfyUI and the extension should be loaded. + **Important**: The `styles.csv` file must be located in the root of `ComfyUI` where `main.py` resides. You can also symlink it if necessary. Example of symlinking: ```bash ln -s /path/to/your/styles.csv /path/to/ComfyUI/styles.csv ``` - ## Nodes Description Each style is represented as a dictionary with the keys being `style_name` and the values being a list containing `positive_prompt` and `negative_prompt`. The prompts are outputs of this Node. diff --git a/__init__.py b/__init__.py index e69de29..24a5721 100644 --- a/__init__.py +++ b/__init__.py @@ -0,0 +1 @@ +from .styles_csv_loader import * \ No newline at end of file diff --git a/__pycache__/__init__.cpython-39.pyc b/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6fff9a85c5098a527ea02552f99d19e2809fd553 GIT binary patch literal 198 zcmYe~<>g`kf-OE5Qxt&oV-N=!FabFZKwQiNBvKes7;_jx7*d#m88n$+G6ID(8E-La z`Drpn2^N=B=A;(KCl{B+=j11*q!z7YC}IYx029AFovmVAQp-|v@(XfP^Gafz^K;WG zLp@`XON&eLbK~>!Q&Njzg1W&Fqnv}o;(fqI#l**F=4F<|$LkeT-r}&y%}*)KNwovn I{~3rG0M>gn$^ZZW literal 0 HcmV?d00001 diff --git a/__pycache__/styles_csv_loader.cpython-39.pyc b/__pycache__/styles_csv_loader.cpython-39.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b2b92f87fe92c251b9ec336c41ae6381c0a824ac GIT binary patch literal 2582 zcmb_e&u9MNX{sZL5pVRAHdnxDMkgD{(UE2w!v})C{_U)TrZ{K|HdvEMdP1yw6Z(sf* z{um?VSL~c@1?YSMkG=vz5J4l-Aa{viqHsV&VV^aqup|v>14cv<-UUJH#2I@9>xmnn zJlTf!7GYEp*iB$3?#e7SEMbY_0cjNFm>3hK1F}yWB~fma#du>}*bQ4uG$zEPn1VHv z;uL(TVk-4?FOs@e|7s=ig;d=KHiw2C%>%v5n_(pR(=grPI$K%gcM`>0;kNSAFo}7) zquPmA zvsfSqwQ2W!zI}*mb+GIW9MDPhEW@DzN{$1@^ZUXNH=hGPFrq#Bf*ul#>33|JEJ9qL zGXYVB8J71R5K*#-MfMAn#HVi%y>gwHW zE6&4*q*&gL6D4`NBY_o4r(7jZ`Q;snP&miSfDU0A?njA*Cahdnw~VZ5!mmTe!1 zBL#oF2liVnzsi^V0Lg_5c&NG0^L@t#W4R5K`X3BtM8uP<$+V+lJvSV{!6?+}9A5#+ zlje}^eeWPia_2-CqV{3a)?L6PaCSb#ZKD1 zb`$7YmT`~>K;jLWFklAKs}7Hz1+fk3@@NL=0ZDTJq`{Qw(Zh@kKe8tlrp;RxphV>s z_`t&X=M<=wm8L@mZzv{*Y_R_|oi)Tz8@wth*^c}`zGQ|~uN(R-OQ&3ngE3>@LhvA- z?fJ9N{~aFEogYnskrb`oiju&O^gJko-6z!Ug{zlue}4J)+{3SDA6=QvrE?{FUveC9 zMM+cC?I=tgrrt+4tSF4-h;Ql)%%D^1Lv-r1|KQXsELZNk@x+LP{fP7+Cex6xf@TuZ zb({U%kBCA$Y8u2VjA-uYdqWKif$GDF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