Rainy commited on
Commit
57b1ce0
1 Parent(s): c414443

:tada: first commit

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -25,7 +25,7 @@ import numpy as np
25
  from RealESRGAN import RealESRGAN
26
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
27
  model = RealESRGAN(device, scale=4)
28
- model.load_weights('weights/RealESRGAN_x4.pth', download=True)
29
  path_to_image = 'inputs/lr_image.png'
30
  image = Image.open(path_to_image).convert('RGB')
31
  sr_image = model.predict(image)
 
25
  from RealESRGAN import RealESRGAN
26
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
27
  model = RealESRGAN(device, scale=4)
28
+ model.load_weights('weights/RealESRGAN_x4plus.pth', download=True)
29
  path_to_image = 'inputs/lr_image.png'
30
  image = Image.open(path_to_image).convert('RGB')
31
  sr_image = model.predict(image)