updates the calculate_weight_patched function to handle patches with varying numbers of elements. It now safely unpacks patch data, skips invalid patches, and maintains compatibility with both Fooocus and standard patches. This change resolves the 'too many values to unpack' error
updates the calculate_weight_patched function to handle patches with varying numbers of elements. It now safely unpacks patch data, skips invalid patches, and maintains compatibility with both Fooocus and standard patches. This change resolves the 'too many values to unpack' error