There seems to be a potential bug in the adams_bashforth_update_few_steps and adams_moulton_update_few_steps functions in RelaCtrl/diffusion/model/sa_solver.py when the order is set to 2. The added terms for the gradient coefficients modification might not be implemented correctly as the comments suggest they are for ODE case and the current implementation might not be fully compatible with the stochastic context.
Steps to Reproduce
- Set the order parameter to 2 in the
adams_bashforth_update_few_steps or adams_moulton_update_few_steps functions.
- Run the sampling process.
- Observe any unexpected behavior in the generated results.
Expected Behavior
The modification should improve the image quality without introducing any instability or incorrect results.
Actual Behavior
There might be instability or unexpected results in the generated images.
Possible Solution
Re - evaluate the implementation of the added terms for the gradient coefficients when order = 2 to ensure they are correct for the stochastic case.
There seems to be a potential bug in the
adams_bashforth_update_few_stepsandadams_moulton_update_few_stepsfunctions inRelaCtrl/diffusion/model/sa_solver.pywhen the order is set to 2. The added terms for the gradient coefficients modification might not be implemented correctly as the comments suggest they are for ODE case and the current implementation might not be fully compatible with the stochastic context.Steps to Reproduce
adams_bashforth_update_few_stepsoradams_moulton_update_few_stepsfunctions.Expected Behavior
The modification should improve the image quality without introducing any instability or incorrect results.
Actual Behavior
There might be instability or unexpected results in the generated images.
Possible Solution
Re - evaluate the implementation of the added terms for the gradient coefficients when order = 2 to ensure they are correct for the stochastic case.