@@ -275,7 +275,7 @@ def progress_callback(step: int, steps: int, time: float):
275275 print("Completed step: {} of {}".format(step, steps))
276276
277277def preview_callback(step: int, images: list[Image.Image], is_noisy: bool):
278- images[0].save(f"{PREVIEW_OUTPUT_DIR} /{step}.png")
278+ images[0].save(f"preview /{step}.png")
279279
280280stable_diffusion = StableDiffusion(
281281 model_path="../models/v1-5-pruned-emaonly.safetensors",
@@ -731,19 +731,20 @@ stable_diffusion.convert(
731731
732732---
733733
734- ### <u>Listing GGML model/prediction/RNG types, sample/preview methods and schedulers</u>
734+ ### <u>Listing LoRA apply modes, GGML model/prediction/RNG types, sample/preview methods and schedulers</u>
735735
736- Access the GGML model/prediction/RNG types, sample/preview methods and schedulers via the following maps:
736+ Access the LoRA apply modes, GGML model/prediction/RNG types, sample/preview methods and schedulers via the following maps:
737737
738738```python
739- from stable_diffusion_cpp import GGML_TYPE_MAP, RNG_TYPE_MAP, SCHEDULER_MAP, SAMPLE_METHOD_MAP, PREDICTION_MAP, PREVIEW_MAP
739+ from stable_diffusion_cpp import GGML_TYPE_MAP, RNG_TYPE_MAP, SCHEDULER_MAP, SAMPLE_METHOD_MAP, PREDICTION_MAP, PREVIEW_MAP, LORA_APPLY_MODE_MAP
740740
741741print("GGML model types:", list(GGML_TYPE_MAP))
742742print("RNG types:", list(RNG_TYPE_MAP))
743743print("Schedulers:", list(SCHEDULER_MAP))
744744print("Sample methods:", list(SAMPLE_METHOD_MAP))
745745print("Prediction types:", list(PREDICTION_MAP))
746746print("Preview methods:", list(PREVIEW_MAP))
747+ print("LoRA apply modes:", list(LORA_APPLY_MODE_MAP))
747748```
748749
749750---
0 commit comments