alfredplpl commited on
Commit
6298b11
β€’
1 Parent(s): f698556

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,7 +12,7 @@ from safetensors import safe_open
12
  from compel import Compel, ReturnedEmbeddingsType
13
  from safetensors.torch import load_file
14
 
15
- model_id = 'alfredplpl/emi-2-0'
16
  auth_token=os.environ["ACCESS_TOKEN"]
17
 
18
  pipe = StableDiffusionXLPipeline.from_pretrained(
@@ -24,7 +24,7 @@ pipe = StableDiffusionXLPipeline.from_pretrained(
24
  pipe=pipe.to("cuda")
25
  #pipe.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
26
  #pipe.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
27
- pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
28
 
29
  state_dict = load_file("unaestheticXLv31.safetensors")
30
  pipe.load_textual_inversion(state_dict["clip_g"], token="unaestheticXLv31", text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
@@ -116,7 +116,7 @@ with gr.Blocks(css=css) as demo:
116
  f"""
117
  <div class="main-div">
118
  <div>
119
- <h1>DEmi Test</h1>
120
  <!--
121
  <h2>
122
  Other Demos:
@@ -128,7 +128,7 @@ with gr.Blocks(css=css) as demo:
128
  -->
129
  </div>
130
  <p>
131
- Test for Distilled Emi<br>
132
  ι€Ÿγ„δ»£γ‚γ‚Šγ«ε“θ³ͺγŒδ½ŽδΈ‹γ™γ‚‹ε―θƒ½ζ€§γŒγ‚γ‚ŠγΎγ™γ€‚
133
  </p>
134
  <p>
 
12
  from compel import Compel, ReturnedEmbeddingsType
13
  from safetensors.torch import load_file
14
 
15
+ model_id = 'aipicasso/emi-stable'
16
  auth_token=os.environ["ACCESS_TOKEN"]
17
 
18
  pipe = StableDiffusionXLPipeline.from_pretrained(
 
24
  pipe=pipe.to("cuda")
25
  #pipe.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
26
  #pipe.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
27
+ #pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
28
 
29
  state_dict = load_file("unaestheticXLv31.safetensors")
30
  pipe.load_textual_inversion(state_dict["clip_g"], token="unaestheticXLv31", text_encoder=pipe.text_encoder_2, tokenizer=pipe.tokenizer_2)
 
116
  f"""
117
  <div class="main-div">
118
  <div>
119
+ <h1>Emi Stable</h1>
120
  <!--
121
  <h2>
122
  Other Demos:
 
128
  -->
129
  </div>
130
  <p>
131
+ Demo for Emi Stable<br>
132
  ι€Ÿγ„δ»£γ‚γ‚Šγ«ε“θ³ͺγŒδ½ŽδΈ‹γ™γ‚‹ε―θƒ½ζ€§γŒγ‚γ‚ŠγΎγ™γ€‚
133
  </p>
134
  <p>