doevent commited on
Commit
f106b3f
·
verified ·
1 Parent(s): a84a572

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,11 +5,11 @@ import os
5
 
6
  os.system("git clone https://github.com/ai-forever/KandiSuperRes.git")
7
  os.system("cd KandiSuperRes")
8
- from KandiSuperRes import get_SR_pipeline
9
 
10
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
11
- sr_pipe2x = get_SR_pipeline(device=device, fp16=True, flash=True, scale=2)
12
- sr_pipe4x = get_SR_pipeline(device=device, fp16=True, flash=True, scale=4)
13
 
14
 
15
  def inference(image, size):
 
5
 
6
  os.system("git clone https://github.com/ai-forever/KandiSuperRes.git")
7
  os.system("cd KandiSuperRes")
8
+ from KandiSuperRes import sr_pipeline
9
 
10
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
11
+ sr_pipe2x = sr_pipeline(device=device, fp16=True, flash=True, scale=2)
12
+ sr_pipe4x = sr_pipeline(device=device, fp16=True, flash=True, scale=4)
13
 
14
 
15
  def inference(image, size):