multimodalart HF staff commited on
Commit
0aa94bc
1 Parent(s): 1140827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ pipe = FluxPipeline.from_pretrained(base_model,
21
  torch_dtype=torch.bfloat16)
22
 
23
  pipe.transformer.to(memory_format=torch.channels_last)
24
- # pipe.transformer = torch.compile(pipe.transformer, mode="max-autotune", fullgraph=True)
25
  # pipe.enable_model_cpu_offload()
26
  clip_slider = CLIPSliderFlux(pipe, device=torch.device("cuda"))
27
 
@@ -124,9 +124,9 @@ intro = """
124
  <h3 style="display: inline-block;margin-left: 10px;margin-top: 6px;font-weight: 500">Exploring CLIP text space with FLUX.1 schnell 🪐</h3>
125
  </div>
126
  <p style="font-size: 0.95rem;margin: 0rem;line-height: 1.2em;margin-top:1em;display: inline-block">
127
- <a href="https://www.ethansmith2000.com/post/traversing-through-clip-space-pca-and-latent-directions" target="_blank">based on & inspired by CLIP directions by Ethan Smith</a>
128
  |
129
- <a href="https://github.com/linoytsaban/semantic-sliders" target="_blank">code</a>
130
  |
131
  <a href="https://huggingface.co/spaces/LatentNavigation/latentnavigation-flux?duplicate=true" target="_blank" style="
132
  display: inline-block;
 
21
  torch_dtype=torch.bfloat16)
22
 
23
  pipe.transformer.to(memory_format=torch.channels_last)
24
+ pipe.transformer = torch.compile(pipe.transformer, mode="max-autotune", fullgraph=True)
25
  # pipe.enable_model_cpu_offload()
26
  clip_slider = CLIPSliderFlux(pipe, device=torch.device("cuda"))
27
 
 
124
  <h3 style="display: inline-block;margin-left: 10px;margin-top: 6px;font-weight: 500">Exploring CLIP text space with FLUX.1 schnell 🪐</h3>
125
  </div>
126
  <p style="font-size: 0.95rem;margin: 0rem;line-height: 1.2em;margin-top:1em;display: inline-block">
127
+ <a href="https://github.com/linoytsaban/semantic-sliders" target="_blank">Semantic Sliders repo</a>
128
  |
129
+ <a href="https://www.ethansmith2000.com/post/traversing-through-clip-space-pca-and-latent-directions" target="_blank">based on Ethan Smith's CLIP directions</a>
130
  |
131
  <a href="https://huggingface.co/spaces/LatentNavigation/latentnavigation-flux?duplicate=true" target="_blank" style="
132
  display: inline-block;