We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90850f2 commit bfd776eCopy full SHA for bfd776e
sbi/inference/posteriors/vector_field_posterior.py
@@ -340,14 +340,6 @@ def _sample_via_diffusion(
340
# Concatenate all batches and ensure we return exactly the requested number
341
samples = torch.cat(all_samples, dim=0)[:total_samples_needed]
342
343
- # Check for NaN values
344
- if torch.isnan(samples).any():
345
- raise RuntimeError(
346
- "NaN values detected during diffusion sampling. This may indicate"
347
- " numerical instability in the vector field or improper time "
348
- "scheduling."
349
- )
350
-
351
return samples
352
353
def sample_via_ode(
0 commit comments