Skip to content

Commit

Permalink
move checkbox out of cached resource
Browse files Browse the repository at this point in the history
  • Loading branch information
palp committed Aug 10, 2023
1 parent a25662e commit b3866d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/demo/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,12 @@ def apply_refiner(
)
seed_everything(seed)

lowvram_mode = st.checkbox("Low vram mode", True)

save_locally, save_path = init_save_locally(os.path.join(SAVE_PATH, str(version)))
state = init_st(model_specs[version_enum], load_filter=True)
state = init_st(
model_specs[version_enum], load_filter=True, lowvram_mode=lowvram_mode
)
model = state["model"]

is_legacy = specs.is_legacy
Expand Down

0 comments on commit b3866d1

Please sign in to comment.