Skip to content

Commit 3757c9d

Browse files
committed
Merge remote-tracking branch 'origin/feat-diffusion-model' into feat-diffusion-model
2 parents 9b520bc + cbd3568 commit 3757c9d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bayesflow/experimental/diffusion_model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def convert_prediction_to_x(
479479
if self.prediction_type == "v":
480480
# convert v into x
481481
x = alpha_t * z - sigma_t * pred
482-
elif self.prediction_type == "e":
482+
elif self.prediction_type == "eps":
483483
# convert noise prediction into x
484484
x = (z - sigma_t * pred) / alpha_t
485485
elif self.prediction_type == "x":
@@ -553,8 +553,8 @@ def _forward(
553553
) -> Tensor | tuple[Tensor, Tensor]:
554554
integrate_kwargs = (
555555
{
556-
"start_time": 1.0,
557-
"stop_time": 0.0,
556+
"start_time": 0.0,
557+
"stop_time": 1.0,
558558
}
559559
| self.integrate_kwargs
560560
| kwargs
@@ -602,8 +602,8 @@ def _inverse(
602602
) -> Tensor | tuple[Tensor, Tensor]:
603603
integrate_kwargs = (
604604
{
605-
"start_time": 0.0,
606-
"stop_time": 1.0,
605+
"start_time": 1.0,
606+
"stop_time": 0.0,
607607
}
608608
| self.integrate_kwargs
609609
| kwargs

0 commit comments

Comments
 (0)