Skip to content

Commit

Permalink
Only do refiner step if samples are actually available
Browse files Browse the repository at this point in the history
  • Loading branch information
jenuk authored and LinearFalcon committed Jul 6, 2024
1 parent 94c146d commit 3a4e63e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/demo/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,9 @@ def apply_refiner(
samples, samples_z = out
else:
samples = out
samples_z = None

if add_pipeline:
if add_pipeline and samples_z is not None:
st.write("**Running Refinement Stage**")
samples = apply_refiner(
samples_z,
Expand Down

0 comments on commit 3a4e63e

Please sign in to comment.