Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

extra lora args added for DevLora and SchnellLora predictor #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,10 @@ def predict(
lora_weights: str = Inputs.lora_weights,
lora_scale: float = Inputs.lora_scale,
megapixels: str = Inputs.megapixels,
extra_lora_weights: str = Inputs.lora_weights,
extra_lora_scale: float = Inputs.lora_scale,
) -> List[Path]:
self.handle_loras(go_fast, lora_weights, lora_scale)
self.handle_loras(go_fast, lora_weights, lora_scale, extra_lora_weights, extra_lora_scale)

width, height = self.size_from_aspect_megapixels(aspect_ratio, megapixels)
imgs, np_imgs = self.shared_predict(
Expand Down Expand Up @@ -1004,12 +1006,14 @@ def predict(
lora_weights: str = Inputs.lora_weights,
lora_scale: float = Inputs.lora_scale,
megapixels: str = Inputs.megapixels,
extra_lora_weights: str = Inputs.lora_weights,
extra_lora_scale: float = Inputs.lora_scale,
) -> List[Path]:
if image and go_fast:
print("img2img not supported with fp8 quantization; running with bf16")
go_fast = False

self.handle_loras(go_fast, lora_weights, lora_scale)
self.handle_loras(go_fast, lora_weights, lora_scale, extra_lora_weights, extra_lora_scale)

width, height = self.size_from_aspect_megapixels(aspect_ratio, megapixels)
imgs, np_imgs = self.shared_predict(
Expand Down