Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

(Shark 1.0) SD: Fix inpaint (+others) breakage on sharkification #2066

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def __init__(
self.unload_unet()
self.tokenizer = get_tokenizer()

@classmethod
def favored_base_models(cls, model_id):
# all base models can be candidate base models for unet compilation
return None
Expand Down Expand Up @@ -671,9 +672,6 @@ def from_pretrained(
is_upscaler = cls.__name__ in ["UpscalerPipeline"]
is_sdxl = cls.__name__ in ["Text2ImageSDXLPipeline"]

print(f"model_id", model_id)
print(f"ckpt_loc", ckpt_loc)
print(f"favored_base_models:", cls.favored_base_models(model_id))
sd_model = SharkifyStableDiffusionModel(
model_id,
ckpt_loc,
Expand Down