Skip to content

Commit

Permalink
Update aurasr_upscaler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyRGW authored Oct 27, 2024
1 parent da26c5a commit 71b6821
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/aurasr_upscaler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dataclasses import dataclass
from modules.upscaler import Upscaler, UpscalerData
from modules import devices
from scripts.aurasr_tools import runAuraSR

@dataclass
Expand All @@ -22,7 +23,9 @@ def __init__(self, dirname, fields: Fields = None):
super().__init__()

def do_upscale(self, img, selected_model):
return runAuraSR(img)
# Get the appropriate device for AuraSR
device = devices.get_device_for('aurasr')
return runAuraSR(img, device)

class Class0(BaseClass, Upscaler):
def __init__(self, dirname):
Expand Down

0 comments on commit 71b6821

Please sign in to comment.