Skip to content
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
3 changes: 3 additions & 0 deletions extensions-builtin/LDSR/ldsr_model_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def run(model, selected_path, custom_steps, eta):
return logs

def super_resolution(self, image, steps=100, target_scale=2, half_attention=False):
previous_clip = sd_hijack.model_hijack.clip
model = self.load_model_from_config(half_attention)

# Run settings
Expand Down Expand Up @@ -151,6 +152,8 @@ def super_resolution(self, image, steps=100, target_scale=2, half_attention=Fals
gc.collect()
devices.torch_gc()

sd_hijack.model_hijack.clip = previous_clip

return a


Expand Down
Loading