sberbank-ai commited on
Commit
8110204
1 Parent(s): 68145b6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -24,12 +24,12 @@ Code for using model you can obtain in our [repo](https://github.com/sberbank-ai
24
  import torch
25
  from PIL import Image
26
  import numpy as np
27
- from realesrgan import RealESRGAN
28
 
29
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
30
 
31
  model = RealESRGAN(device, scale=4)
32
- model.load_weights('weights/RealESRGAN_x4.pth')
33
 
34
  path_to_image = 'inputs/lr_image.png'
35
  image = Image.open(path_to_image).convert('RGB')
 
24
  import torch
25
  from PIL import Image
26
  import numpy as np
27
+ from RealESRGAN import RealESRGAN
28
 
29
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
30
 
31
  model = RealESRGAN(device, scale=4)
32
+ model.load_weights('weights/RealESRGAN_x4.pth', download=True)
33
 
34
  path_to_image = 'inputs/lr_image.png'
35
  image = Image.open(path_to_image).convert('RGB')