File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -229,17 +229,10 @@ struct GITSSchedule : SigmaSchedule {
229
229
}
230
230
231
231
std::vector<float > sigmas;
232
+ int idx = static_cast <int >(std::round (1 .20f * 10 )) - 8 ; // Example adjustment for coefficient 1.20
232
233
if (n <= 20 ) {
233
- int idx = static_cast <int >(std::round (1 .20f * 10 )) - 8 ; // Example adjustment for coefficient 1.20
234
- if (idx < 0 || idx >= GITS_NOISE.size ()) {
235
- throw std::out_of_range (" Coefficient index out of range." );
236
- }
237
234
sigmas = GITS_NOISE[idx][n - 2 ];
238
235
} else {
239
- int idx = static_cast <int >(std::round (1 .20f * 10 )) - 8 ; // Example adjustment for coefficient 1.20
240
- if (idx < 0 || idx >= GITS_NOISE.size ()) {
241
- throw std::out_of_range (" Coefficient index out of range." );
242
- }
243
236
sigmas = GITS_NOISE[idx].back ();
244
237
sigmas = log_linear_interp (sigmas, n + 1 );
245
238
}
You can’t perform that action at this time.
0 commit comments