selfit-camera commited on
Commit
1049e96
·
1 Parent(s): 57b3d92
Files changed (2) hide show
  1. __lib__/app.py +0 -68
  2. __lib__/i18n/en.pyc +0 -0
__lib__/app.py CHANGED
@@ -1772,25 +1772,6 @@ def create_app():
1772
  </div>
1773
  </div>
1774
 
1775
- <!-- Performance Highlights -->
1776
- <div style="background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; padding: 40px; border-radius: 20px; margin: 40px 0;">
1777
- <h3 style="margin: 0 0 25px 0; font-size: 1.6em; font-weight: 700; text-align: center;">&#9889; Performance Highlights</h3>
1778
- <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0;">
1779
- <div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px; text-align: center;">
1780
- <h4 style="margin: 0 0 10px 0; font-size: 1.2em;">&#127937; Few-Step Flow Matching</h4>
1781
- <p style="margin: 0; opacity: 0.95; font-size: 0.95em;"><strong>4–8 NFE</strong> with Karras sigmas + RK2/RK4</p>
1782
- </div>
1783
- <div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px; text-align: center;">
1784
- <h4 style="margin: 0 0 10px 0; font-size: 1.2em;">&#127909; Temporal-Ready</h4>
1785
- <p style="margin: 0; opacity: 0.95; font-size: 0.95em;"><strong>Video latents + shared attention</strong> improve consistency</p>
1786
- </div>
1787
- <div style="background: rgba(255,255,255,0.15); padding: 20px; border-radius: 12px; text-align: center;">
1788
- <h4 style="margin: 0 0 10px 0; font-size: 1.2em;">&#128161; Hybrid ODE Solver</h4>
1789
- <p style="margin: 0; opacity: 0.95; font-size: 0.95em;"><strong>Heun/RK4 + Flow Matching</strong> trajectory integration</p>
1790
- </div>
1791
- </div>
1792
- </div>
1793
-
1794
  <!-- Capabilities -->
1795
  <div style="background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%); padding: 30px; border-radius: 15px; margin: 40px 0;">
1796
  <h3 style="color: #8b5cf6; text-align: center; margin: 0 0 25px 0; font-size: 1.5em; font-weight: 700;">
@@ -1949,55 +1930,6 @@ u = SwiGLU(W<sub>1</sub>·LN(x)); &nbsp; x ← x + λ ⊙ (W<sub>2</sub>·u) ·
1949
  </div>
1950
  </div>
1951
 
1952
- <!-- NEW: Adaptive Multi-Modal Gating (Light Theme) -->
1953
- <div style="background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 50%, #b39ddb 100%); padding: 35px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 40px 0; color: #2c3e50;">
1954
- <h2 style="color: #5e35b1; margin: 0 0 25px 0; font-size: 1.7em; font-weight: 700; text-align: center;">
1955
- &#129504; Adaptive Multi-Modal Gating (AMG)
1956
- </h2>
1957
- <p style="color: #555; margin-bottom: 25px; text-align: center; font-size: 1.05em;">
1958
- Dynamically balancing text, image references, and temporal context through learned gating mechanisms.
1959
- </p>
1960
-
1961
- <div style="background: #2d3748; padding: 25px; border-radius: 15px; margin: 20px 0; border: 2px solid #4a5568;">
1962
- <div style="font-family: monospace; font-size: 0.92em; color: #e2e8f0; white-space: pre-wrap;">
1963
- # Multi-modal context encoding
1964
- c_text = TextEncoder(prompt) # CLIP/T5 embeddings
1965
- c_imgs = [VisualProjector(img) for img in reference_images] # Up to 3 images
1966
- c_temp = TemporalEncoder(prev_frames) # For video generation
1967
-
1968
- # Learned gating weights (softmax over modalities)
1969
- α = Softmax(MLP([c_text; c_imgs; c_temp])) # α ∈ R^(2+n_imgs)
1970
-
1971
- # Weighted multi-modal fusion
1972
- context = α_text · c_text + Σᵢ αᵢ · c_imgs[i] + α_temp · c_temp
1973
-
1974
- # Cross-attention with gated context
1975
- h = h + CrossAttn(Q=h, KV=context)
1976
-
1977
- # AdaLN-Zero modulation with timestep + modal gates
1978
- γ, β, α_gate = MLP(t_emb ⊕ modal_gate)
1979
- h = α_gate · LayerNorm(h) · (1 + γ) + β</div>
1980
- </div>
1981
-
1982
- <div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px;">
1983
- <div style="background: rgba(255,255,255,0.8); padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #9575cd; box-shadow: 0 2px 8px rgba(0,0,0,0.08);">
1984
- <div style="font-size: 1.8em; margin-bottom: 8px;">&#128172;</div>
1985
- <div style="font-weight: 600; color: #5e35b1;">Text Gate</div>
1986
- <div style="font-size: 0.85em; color: #666;">Semantic control</div>
1987
- </div>
1988
- <div style="background: rgba(255,255,255,0.8); padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #9575cd; box-shadow: 0 2px 8px rgba(0,0,0,0.08);">
1989
- <div style="font-size: 1.8em; margin-bottom: 8px;">&#127912;</div>
1990
- <div style="font-weight: 600; color: #5e35b1;">Image Gate</div>
1991
- <div style="font-size: 0.85em; color: #666;">Style & identity</div>
1992
- </div>
1993
- <div style="background: rgba(255,255,255,0.8); padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #9575cd; box-shadow: 0 2px 8px rgba(0,0,0,0.08);">
1994
- <div style="font-size: 1.8em; margin-bottom: 8px;">&#127909;</div>
1995
- <div style="font-weight: 600; color: #5e35b1;">Temporal Gate</div>
1996
- <div style="font-size: 0.85em; color: #666;">Motion coherence</div>
1997
- </div>
1998
- </div>
1999
- </div>
2000
-
2001
  <!-- Comparison Table - Updated with Latest Models -->
2002
  <div style="background: white; padding: 35px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 40px 0;">
2003
  <h2 style="color: #2c3e50; margin: 0 0 25px 0; font-size: 1.6em; font-weight: 700; text-align: center;">
 
1772
  </div>
1773
  </div>
1774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1775
  <!-- Capabilities -->
1776
  <div style="background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%); padding: 30px; border-radius: 15px; margin: 40px 0;">
1777
  <h3 style="color: #8b5cf6; text-align: center; margin: 0 0 25px 0; font-size: 1.5em; font-weight: 700;">
 
1930
  </div>
1931
  </div>
1932
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1933
  <!-- Comparison Table - Updated with Latest Models -->
1934
  <div style="background: white; padding: 35px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 40px 0;">
1935
  <h2 style="color: #2c3e50; margin: 0 0 25px 0; font-size: 1.6em; font-weight: 700; text-align: center;">
__lib__/i18n/en.pyc CHANGED
Binary files a/__lib__/i18n/en.pyc and b/__lib__/i18n/en.pyc differ