MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / sigma_shift

Method sigma_shift

trainer/sd3_scheduler.py:66–79  ·  view source on GitHub ↗

according to eq 23, and the shift scale for 1024 is 4 here, not consistent with paper, but It's ok. Change of base_scale will make shift_scale of 256 != 1

(
        self,
        t,
        frames,
        height,
        width,
    )

Source from the content-addressed store, hash-verified

64 return t
65
66 def sigma_shift(
67 self,
68 t,
69 frames,
70 height,
71 width,
72 ):
73 """according to eq 23, and the shift scale for 1024 is 4 here, not
74 consistent with paper, but It's ok.
75
76 Change of base_scale will make shift_scale of 256 != 1
77 """
78 shift_scale = self.get_shift_scale(frames, height, width)
79 return self.sigma_shift_given_shift_scale(t, shift_scale)
80
81 @staticmethod
82 def sigma_shift_given_shift_scale(t, shift_scale):

Callers 1

sample_t_and_sigmaMethod · 0.95

Calls 2

get_shift_scaleMethod · 0.95

Tested by

no test coverage detected