ixarchakos commited on
Commit
6a18796
·
verified ·
1 Parent(s): 8ce16fa

Upload 22 files

Browse files
app.py CHANGED
@@ -82,7 +82,7 @@ def main():
82
 
83
  result = gr.Image(label="Result", show_label=False)
84
 
85
- with gr.Accordion("Advanced Settings", open=False):
86
  negative_prompt = gr.Text(
87
  label="Negative prompt",
88
  max_lines=1,
@@ -115,7 +115,7 @@ def main():
115
  minimum=512,
116
  maximum=1024,
117
  step=32,
118
- value=1024, # Replace with defaults that work for your model
119
  )
120
 
121
  height = gr.Slider(
@@ -123,7 +123,7 @@ def main():
123
  minimum=512,
124
  maximum=1024,
125
  step=32,
126
- value=1024, # Replace with defaults that work for your model
127
  )
128
 
129
  with gr.Row():
@@ -132,7 +132,7 @@ def main():
132
  minimum=0.0,
133
  maximum=10.0,
134
  step=0.1,
135
- value=7.5, # Replace with defaults that work for your model
136
  )
137
 
138
  num_inference_steps = gr.Slider(
@@ -140,7 +140,7 @@ def main():
140
  minimum=1,
141
  maximum=400,
142
  step=1,
143
- value=150, # Replace with defaults that work for your model
144
  )
145
 
146
  with gr.Row():
 
82
 
83
  result = gr.Image(label="Result", show_label=False)
84
 
85
+ with gr.Accordion("Advanced Settings", open=True):
86
  negative_prompt = gr.Text(
87
  label="Negative prompt",
88
  max_lines=1,
 
115
  minimum=512,
116
  maximum=1024,
117
  step=32,
118
+ value=1024, # Replace with defaults that work for your checkpoints
119
  )
120
 
121
  height = gr.Slider(
 
123
  minimum=512,
124
  maximum=1024,
125
  step=32,
126
+ value=1024, # Replace with defaults that work for your checkpoints
127
  )
128
 
129
  with gr.Row():
 
132
  minimum=0.0,
133
  maximum=10.0,
134
  step=0.1,
135
+ value=7.5, # Replace with defaults that work for your checkpoints
136
  )
137
 
138
  num_inference_steps = gr.Slider(
 
140
  minimum=1,
141
  maximum=400,
142
  step=1,
143
+ value=150, # Replace with defaults that work for your checkpoints
144
  )
145
 
146
  with gr.Row():
checkpoints/checkpoint-1500/optimizer.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84e63c65edbef797fc0a8f9d98ebcc2f84fea685ff87997d355d6ac235b9fa34
3
+ size 6592122
checkpoints/checkpoint-1500/pytorch_lora_weights.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05f29c0102af5fe4870a3d1f669d756d5f5245ad737f3ec83e9cc3f278ab482d
3
+ size 3226184
checkpoints/checkpoint-1500/random_states_0.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ed4ee998b5458bb463572ca508dc61b8bb319336fccf3cc2ffc91b101dafce4
3
+ size 15188
checkpoints/checkpoint-1500/scheduler.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42516625df2678a0f87de778a3f0ead58da148ac4f25fc5c6212c01a977100d6
3
+ size 1000
config.py CHANGED
@@ -9,11 +9,10 @@ torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
9
  MAX_SEED = np.iinfo(np.int32).max
10
  MAX_IMAGE_SIZE = 1024
11
 
12
- # PROJECT_PATH = "/Users/ioannisxarchakos/Dropbox/Projects/Dyla/"
13
- PROJECT_PATH = "/home/xarchakosi/dyla/"
14
  PRETRAINED_MODEL = 'runwayml/stable-diffusion-v1-5'
15
  PRETRAINED_MODEL_XL = 'stabilityai/stable-diffusion-xl-base-1.0'
16
- LORA_WEIGHTS_PATH = os.path.join(PROJECT_PATH, 'sd-model-finetuned-lora/')
17
  DATA_DIR = os.path.join(PROJECT_PATH, 'ioannis_images/')
18
  CSV_PATH = os.path.join(DATA_DIR, 'prompts.csv')
19
  OUTPUT_DIR = 'generated_images'
 
9
  MAX_SEED = np.iinfo(np.int32).max
10
  MAX_IMAGE_SIZE = 1024
11
 
12
+ PROJECT_PATH = "/Users/ioannisxarchakos/Dropbox/Projects/Dyla/"
 
13
  PRETRAINED_MODEL = 'runwayml/stable-diffusion-v1-5'
14
  PRETRAINED_MODEL_XL = 'stabilityai/stable-diffusion-xl-base-1.0'
15
+ LORA_WEIGHTS_PATH = os.path.join(PROJECT_PATH, 'sd-checkpoints-finetuned-lora/')
16
  DATA_DIR = os.path.join(PROJECT_PATH, 'ioannis_images/')
17
  CSV_PATH = os.path.join(DATA_DIR, 'prompts.csv')
18
  OUTPUT_DIR = 'generated_images'