Ahsen Khaliq commited on
Commit
3450976
1 Parent(s): a153b2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def inference(img):
37
  hsize = int((float(img.size[1])*float(wpercent)))
38
  img = img.resize((basewidth,hsize), Image.ANTIALIAS)
39
  img.save(INPUT_DIR + "1.jpg", "JPEG")
40
- run_cmd("python inference_realesrgan.py --model_path experiments/pretrained_models/RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 3.5")
41
  return os.path.join(OUTPUT_DIR, "1_out.jpg")
42
 
43
 
 
37
  hsize = int((float(img.size[1])*float(wpercent)))
38
  img = img.resize((basewidth,hsize), Image.ANTIALIAS)
39
  img.save(INPUT_DIR + "1.jpg", "JPEG")
40
+ run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 3.5")
41
  return os.path.join(OUTPUT_DIR, "1_out.jpg")
42
 
43