• Stefy Lanza (nextime / spora )'s avatar
    fix: Ensure more specific Wan model keys match first · 9a48c010
    Stefy Lanza (nextime / spora ) authored
    The issue was that model IDs like 'wan2_2_i2v_a14b' would match
    'wan2_2' (T2V) before 'wan2_2_i2v' (I2V) because 'wan2_2' comes
    first in the dictionary.
    
    Now the dictionary is ordered with more specific keys first:
    - wan2_2_i2v_a14b (most specific)
    - wan2.2_i2v_a14b
    - wan2_2_i2v
    - wan2.2_i2v
    - wan2_2
    - wan2.2
    etc.
    
    This ensures longer/more specific keys are checked before shorter ones.
    9a48c010
videogen.py 429 KB