(cfg_scale, num_inference_steps)
| 117 | |
| 118 | |
| 119 | def get_smooth_dynamic_cfg_scale_list(cfg_scale, num_inference_steps): |
| 120 | |
| 121 | cfg_list = [ |
| 122 | 1 + cfg_scale * ((1 - math.cos(math.pi * ( |
| 123 | (num_inference_steps - idx) / num_inference_steps)**5.0)) / 2) |
| 124 | for idx in range(0, int(num_inference_steps)) |
| 125 | ] |
| 126 | |
| 127 | return cfg_list |
| 128 | |
| 129 | |
| 130 | def get_cogvideo_dynamic_cfg_scale_list(cfg_scale, num_inference_steps, |
nothing calls this directly
no outgoing calls
no test coverage detected