thefreeham commited on
Commit
3220e92
1 Parent(s): 5a6f45f

Create consts.py

Browse files
Files changed (1) hide show
  1. consts.py +24 -0
consts.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from enum import Enum
2
+
3
+ IMAGES_OUTPUT_DIR = 'generations'
4
+
5
+ DALLE_MODEL_MINI = "dalle-mini/dalle-mini/mini-1:v0" # the original DALL-E Mini. Fastest yet suboptimal results
6
+ DALLE_MODEL_MEGA = "dalle-mini/dalle-mini/mega-1-fp16:latest" # the advanced version of DALL-E Mini. Requires more compute and VRAM
7
+ DALLE_MODEL_MEGA_FULL = "dalle-mini/dalle-mini/mega-1:latest" # DALL-E Mega. Warning: requires significantly more storage and GPU RAM
8
+ DALLE_COMMIT_ID = None
9
+
10
+ # VQGAN model
11
+ VQGAN_REPO = "dalle-mini/vqgan_imagenet_f16_16384"
12
+ VQGAN_COMMIT_ID = "e93a26e7707683d349bf5d5c41c5b0ef69b677a9"
13
+
14
+
15
+ # We can customize generation parameters (see https://huggingface.co/blog/how-to-generate)
16
+ GEN_TOP_K = None
17
+ GEN_TOP_P = None
18
+ TEMPERATURE = None
19
+ COND_SCALE = 10.0
20
+
21
+ class ModelSize(Enum):
22
+ MINI = "Mini"
23
+ MEGA = "Mega"
24
+ MEGA_FULL = "Mega_full"