Skip to content

Commit

Permalink
pass options into state2 init
Browse files Browse the repository at this point in the history
  • Loading branch information
palp committed Aug 10, 2023
1 parent cd81956 commit d6f2b78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/demo/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ def apply_refiner(
st.write("**Refiner Options:**")

specs2 = model_specs[version2]
state2 = init_st(specs2, load_filter=False)
state2 = init_st(
specs2, load_filter=False, use_fp16=use_fp16, enable_swap=enable_swap
)
params2 = state2["params"]

params2.img2img_strength = st.number_input(
Expand Down

0 comments on commit d6f2b78

Please sign in to comment.