hysts HF staff commited on
Commit
f884864
1 Parent(s): 3af219a
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -21,15 +21,6 @@ from uploader import upload
21
  TITLE = '# LoRA + StableDiffusion Training UI'
22
  DESCRIPTION = 'This is an unofficial demo for [https://github.com/cloneofsimo/lora](https://github.com/cloneofsimo/lora).'
23
 
24
- USAGE_INFO = '''You can train and download models in the "Training" tab, and test them in the "Test" tab.
25
-
26
- You can also test the pretrained models in the [original repo](https://github.com/cloneofsimo/lora).
27
- Models with names starting with "lora/" are the pretrained models and the ones with names starting with "results/" are your trained models.
28
- After training, you can press "Reload Weight List" button to load your trained model names.
29
-
30
- Note that your trained models will be deleted when the second training is started.
31
- '''
32
-
33
  ORIGINAL_SPACE_ID = 'hysts/LoRA-SD-training'
34
  SPACE_ID = os.getenv('SPACE_ID', ORIGINAL_SPACE_ID)
35
  SHARED_UI_WARNING = f'''# Attention - This Space doesn't work in this shared UI. You can duplicate and use it with a paid private T4 GPU.
@@ -103,6 +94,7 @@ def create_training_demo(trainer: Trainer,
103
  gr.Markdown('''
104
  - It will take about 8 minutes to train for 1000 steps with a T4 GPU.
105
  - You may want to try a small number of steps first, like 1, to see if everything works fine in your environment.
 
106
  ''')
107
 
108
  run_button = gr.Button('Start Training')
@@ -204,6 +196,8 @@ def create_inference_demo(pipe: InferencePipeline) -> gr.Blocks:
204
  run_button = gr.Button('Generate')
205
 
206
  gr.Markdown('''
 
 
207
  - The pretrained models for "disney", "illust" and "pop" are trained with the concept prompt "style of sks".
208
  - The pretrained model for "kiriko" is trained with the concept prompt "game character bnha". For this model, the text encoder is also trained.
209
  ''')
@@ -283,7 +277,4 @@ with gr.Blocks(css='style.css') as demo:
283
  with gr.TabItem('Upload'):
284
  create_upload_demo()
285
 
286
- with gr.Accordion('Usage', open=False):
287
- gr.Markdown(USAGE_INFO)
288
-
289
  demo.queue(default_enabled=False).launch(share=False)
 
21
  TITLE = '# LoRA + StableDiffusion Training UI'
22
  DESCRIPTION = 'This is an unofficial demo for [https://github.com/cloneofsimo/lora](https://github.com/cloneofsimo/lora).'
23
 
 
 
 
 
 
 
 
 
 
24
  ORIGINAL_SPACE_ID = 'hysts/LoRA-SD-training'
25
  SPACE_ID = os.getenv('SPACE_ID', ORIGINAL_SPACE_ID)
26
  SHARED_UI_WARNING = f'''# Attention - This Space doesn't work in this shared UI. You can duplicate and use it with a paid private T4 GPU.
 
94
  gr.Markdown('''
95
  - It will take about 8 minutes to train for 1000 steps with a T4 GPU.
96
  - You may want to try a small number of steps first, like 1, to see if everything works fine in your environment.
97
+ - Note that your trained models will be deleted when the second training is started. You can upload your trained model in the "Upload" tab.
98
  ''')
99
 
100
  run_button = gr.Button('Start Training')
 
196
  run_button = gr.Button('Generate')
197
 
198
  gr.Markdown('''
199
+ - Models with names starting with "lora/" are the pretrained models provided in the [original repo](https://github.com/cloneofsimo/lora), and the ones with names starting with "results/" are your trained models.
200
+ - After training, you can press "Reload Weight List" button to load your trained model names.
201
  - The pretrained models for "disney", "illust" and "pop" are trained with the concept prompt "style of sks".
202
  - The pretrained model for "kiriko" is trained with the concept prompt "game character bnha". For this model, the text encoder is also trained.
203
  ''')
 
277
  with gr.TabItem('Upload'):
278
  create_upload_demo()
279
 
 
 
 
280
  demo.queue(default_enabled=False).launch(share=False)