52Hz commited on
Commit
d6340e5
1 Parent(s): 74f946b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,10 +9,10 @@ os.system(
9
 
10
  def inference(img):
11
  os.system('mkdir test')
12
- basewidth = 512
13
- wpercent = (basewidth / float(img.size[0]))
14
- hsize = int((float(img.size[1]) * float(wpercent)))
15
- img = img.resize((basewidth, hsize), Image.ANTIALIAS)
16
  img.save("test/1.png", "PNG")
17
  os.system(
18
  'python main_test_SRMNet.py --input_dir test --weights experiments/pretrained_models/AWGN_denoising_SRMNet.pth')
 
9
 
10
  def inference(img):
11
  os.system('mkdir test')
12
+ #basewidth = 512
13
+ #wpercent = (basewidth / float(img.size[0]))
14
+ #hsize = int((float(img.size[1]) * float(wpercent)))
15
+ #img = img.resize((basewidth, hsize), Image.ANTIALIAS)
16
  img.save("test/1.png", "PNG")
17
  os.system(
18
  'python main_test_SRMNet.py --input_dir test --weights experiments/pretrained_models/AWGN_denoising_SRMNet.pth')