adamelliotfields commited on
Commit
3e63709
1 Parent(s): eb9126a
Files changed (4) hide show
  1. DOCS.md +9 -9
  2. app.py +0 -2
  3. lib/__init__.py +1 -6
  4. lib/config.py +0 -1
DOCS.md CHANGED
@@ -4,21 +4,21 @@ TL;DR: Enter a prompt or roll the `🎲` and press `Generate`.
4
 
5
  ### Prompting
6
 
7
- Positive and negative prompts are embedded by [Compel](https://github.com/damian0815/compel) for weighting. See [syntax features](https://github.com/damian0815/compel/blob/main/doc/syntax.md) to learn more.
 
 
8
 
9
  Use `+` or `-` to increase the weight of a token. The weight grows exponentially when chained. For example, `blue+` means 1.1x more attention is given to `blue`, while `blue++` means 1.1^2 more, and so on. The same applies to `-`.
10
 
11
- For groups of tokens, wrap them in parentheses and multiply by a float between 0 and 2. For example, `a (birthday cake)1.3 on a table` will increase the weight of both `birthday` and `cake` by 1.3x. This also means the entire scene will be more birthday-like, not just the cake. To counteract this, you can use `-` inside the parentheses on specific tokens, e.g., `a (birthday-- cake)1.3`, to reduce the birthday aspect.
12
 
13
  ### Models
14
 
15
- Each model checkpoint has a different aesthetic:
16
-
17
- * [cyberdelia/CyberRealisticXL](https://huggingface.co/cyberdelia/CyberRealsticXL): photorealistic
18
- * [fluently/Fluently-XL-Final](https://huggingface.co/fluently/Fluently-XL-Final): general purpose
19
- * [segmind/Segmind-Vega](https://huggingface.co/segmind/Segmind-Vega): lightweight general purpose (default)
20
- * [SG161222/RealVisXL_V5.0](https://huggingface.co/SG161222/RealVisXL_V5.0): photorealistic
21
- * [stabilityai/stable-diffusion-xl-base-1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0): base
22
 
23
  ### Scale
24
 
 
4
 
5
  ### Prompting
6
 
7
+ Positive and negative prompts are embedded by [Compel](https://github.com/damian0815/compel). See [syntax features](https://github.com/damian0815/compel/blob/main/doc/syntax.md) to learn more.
8
+
9
+ #### Weighting
10
 
11
  Use `+` or `-` to increase the weight of a token. The weight grows exponentially when chained. For example, `blue+` means 1.1x more attention is given to `blue`, while `blue++` means 1.1^2 more, and so on. The same applies to `-`.
12
 
13
+ Groups of tokens can be weighted together by wrapping in parentheses and multiplying by a float between 0 and 2. For example, `(masterpiece, best quality)1.2` will increase the weight of both `masterpiece` and `best quality` by 1.2x.
14
 
15
  ### Models
16
 
17
+ * [cyberdelia/CyberRealisticXL](https://huggingface.co/cyberdelia/CyberRealsticXL)
18
+ * [fluently/Fluently-XL-Final](https://huggingface.co/fluently/Fluently-XL-Final)
19
+ * [segmind/Segmind-Vega](https://huggingface.co/segmind/Segmind-Vega) (default)
20
+ * [SG161222/RealVisXL_V5.0](https://huggingface.co/SG161222/RealVisXL_V5.0)
21
+ * [stabilityai/stable-diffusion-xl-base-1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0)
 
 
22
 
23
  ### Scale
24
 
app.py CHANGED
@@ -14,7 +14,6 @@ from huggingface_hub._snapshot_download import snapshot_download
14
 
15
  from lib import (
16
  Config,
17
- disable_progress_bars,
18
  generate,
19
  read_file,
20
  read_json,
@@ -311,7 +310,6 @@ if __name__ == "__main__":
311
  parser.add_argument("-p", "--port", type=int, metavar="INT", default=7860)
312
  args = parser.parse_args()
313
 
314
- # disable_progress_bars()
315
  token = os.environ.get("HF_TOKEN", None)
316
  for repo_id, allow_patterns in Config.HF_REPOS.items():
317
  snapshot_download(
 
14
 
15
  from lib import (
16
  Config,
 
17
  generate,
18
  read_file,
19
  read_json,
 
310
  parser.add_argument("-p", "--port", type=int, metavar="INT", default=7860)
311
  args = parser.parse_args()
312
 
 
313
  token = os.environ.get("HF_TOKEN", None)
314
  for repo_id, allow_patterns in Config.HF_REPOS.items():
315
  snapshot_download(
lib/__init__.py CHANGED
@@ -1,14 +1,9 @@
1
  from .config import Config
2
  from .inference import generate
3
- from .utils import (
4
- disable_progress_bars,
5
- read_file,
6
- read_json,
7
- )
8
 
9
  __all__ = [
10
  "Config",
11
- "disable_progress_bars",
12
  "generate",
13
  "read_file",
14
  "read_json",
 
1
  from .config import Config
2
  from .inference import generate
3
+ from .utils import read_file, read_json
 
 
 
 
4
 
5
  __all__ = [
6
  "Config",
 
7
  "generate",
8
  "read_file",
9
  "read_json",
lib/config.py CHANGED
@@ -2,7 +2,6 @@ from types import SimpleNamespace
2
  from warnings import filterwarnings
3
 
4
  from diffusers import (
5
- DDIMScheduler,
6
  DEISMultistepScheduler,
7
  DPMSolverMultistepScheduler,
8
  EulerAncestralDiscreteScheduler,
 
2
  from warnings import filterwarnings
3
 
4
  from diffusers import (
 
5
  DEISMultistepScheduler,
6
  DPMSolverMultistepScheduler,
7
  EulerAncestralDiscreteScheduler,