Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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://
|
128 |
|
|
129 |
-
<a href="https://
|
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;
|