root commited on
Commit
908a76c
1 Parent(s): f9009d9
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -31,9 +31,9 @@ maximum_concepts = 3
31
 
32
  #Pre download the files
33
  if(is_gpu_associated):
34
- # model_v1 = snapshot_download(repo_id="multimodalart/sd-fine-tunable")
35
- # model_v2 = snapshot_download(repo_id="stabilityai/stable-diffusion-2")
36
- # model_v2_512 = snapshot_download(repo_id="stabilityai/stable-diffusion-2-base")
37
  model_alt = snapshot_download(repo_id="BAAI/AltDiffusion")
38
  model_alt_m9 = snapshot_download(repo_id="BAAI/AltDiffusion-m9")
39
  safety_checker = snapshot_download(repo_id="multimodalart/sd-sc")
@@ -518,11 +518,11 @@ with gr.Blocks(css=css) as demo:
518
 
519
  #Very hacky approach to emulate dynamically created Gradio components
520
  with gr.Column() as upload_your_concept:
521
- with gr.Column():
522
  thing_description = gr.Markdown("You are going to train an `object`, please upload 5-10 images of the object you are planning on training on from different angles/perspectives. You must have the right to do so and you are liable for the images you use, example")
523
  thing_experimental = gr.Checkbox(label="Improve faces (prior preservation) - can take longer training but can improve faces", visible=False, value=False)
524
- thing_image_example = gr.HTML('''<img src="file/cat-toy.png" />''')
525
- things_naming = gr.Markdown("You should name your concept with a unique made up word that has low chance of the model already knowing it (e.g.: `cttoy` here). Images will be automatically cropped to 512x512.")
526
 
527
  # with gr.Column():
528
  file_collection = []
 
31
 
32
  #Pre download the files
33
  if(is_gpu_associated):
34
+ model_v1 = snapshot_download(repo_id="multimodalart/sd-fine-tunable")
35
+ model_v2 = snapshot_download(repo_id="stabilityai/stable-diffusion-2")
36
+ model_v2_512 = snapshot_download(repo_id="stabilityai/stable-diffusion-2-base")
37
  model_alt = snapshot_download(repo_id="BAAI/AltDiffusion")
38
  model_alt_m9 = snapshot_download(repo_id="BAAI/AltDiffusion-m9")
39
  safety_checker = snapshot_download(repo_id="multimodalart/sd-sc")
 
518
 
519
  #Very hacky approach to emulate dynamically created Gradio components
520
  with gr.Column() as upload_your_concept:
521
+ with gr.Box():
522
  thing_description = gr.Markdown("You are going to train an `object`, please upload 5-10 images of the object you are planning on training on from different angles/perspectives. You must have the right to do so and you are liable for the images you use, example")
523
  thing_experimental = gr.Checkbox(label="Improve faces (prior preservation) - can take longer training but can improve faces", visible=False, value=False)
524
+ thing_image_example = gr.HTML('''<img src="https://raw.githubusercontent.com/superhero-7/img_bank/main/Naruto.png" />''')
525
+ things_naming = gr.Markdown("You should name your concept with a unique made up word that has low chance of the model already knowing it (e.g.: `UzNrto` here). Images will be automatically cropped to 512x512.")
526
 
527
  # with gr.Column():
528
  file_collection = []