givkashi commited on
Commit
d3f0724
1 Parent(s): 6cf0aec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -1,21 +1,16 @@
1
  import os
2
- # os.system("wget https://github.com/JingyunLiang/SwinIR/releases/download/v0.0/003_realSR_BSRGAN_DFOWMFC_s64w8_SwinIR-L_x4_GAN.pth -P experiments/pretrained_models")
3
  import gradio as gr
4
  from PIL import Image, ImageOps
5
  import numpy as np
6
  os.system("pip install opencv-python")
7
  os.system("pip install torch")
8
- #os.system("pip install requirements.txt")
9
 
10
  if not os.path.exists("data"):
11
  os.mkdir("data")
12
  if not os.path.exists("results"):
13
  os.mkdir("results")
14
 
15
-
16
- # os.rename("003_realSR_BSRGAN_DFOWMFC_s64w8_SwinIR-L_x4_GAN.pth", "experiments/pretrained_models/003_realSR_BSRGAN_DFOWMFC_s64w8_SwinIR-L_x4_GAN.pth")
17
  def infer(img):
18
- #img = ImageOps.contain(img, (700, 700))
19
  width, height = img.size
20
  res=np.ones_like((width, height,3))
21
  print(res.shape)
 
1
  import os
 
2
  import gradio as gr
3
  from PIL import Image, ImageOps
4
  import numpy as np
5
  os.system("pip install opencv-python")
6
  os.system("pip install torch")
 
7
 
8
  if not os.path.exists("data"):
9
  os.mkdir("data")
10
  if not os.path.exists("results"):
11
  os.mkdir("results")
12
 
 
 
13
  def infer(img):
 
14
  width, height = img.size
15
  res=np.ones_like((width, height,3))
16
  print(res.shape)