Commit fc7a249d authored by boomb0om's avatar boomb0om
Browse files

Fix imports

parent d0496926
from .model import RealESRGAN
\ No newline at end of file
...@@ -4,8 +4,8 @@ from PIL import Image ...@@ -4,8 +4,8 @@ from PIL import Image
import numpy as np import numpy as np
import cv2 import cv2
from rrdbnet_arch import RRDBNet from .rrdbnet_arch import RRDBNet
from utils import * from .utils import *
class RealESRGAN: class RealESRGAN:
......
...@@ -2,7 +2,7 @@ import torch ...@@ -2,7 +2,7 @@ import torch
from torch import nn as nn from torch import nn as nn
from torch.nn import functional as F from torch.nn import functional as F
from arch_utils import default_init_weights, make_layer, pixel_unshuffle from .arch_utils import default_init_weights, make_layer, pixel_unshuffle
class ResidualDenseBlock(nn.Module): class ResidualDenseBlock(nn.Module):
......
...@@ -2,7 +2,7 @@ import os ...@@ -2,7 +2,7 @@ import os
import torch import torch
from PIL import Image from PIL import Image
import numpy as np import numpy as np
from realesrgan import RealESRGAN from RealESRGAN import RealESRGAN
def main() -> int: def main() -> int:
...@@ -13,7 +13,6 @@ def main() -> int: ...@@ -13,7 +13,6 @@ def main() -> int:
image = Image.open(f"inputs/{image}").convert('RGB') image = Image.open(f"inputs/{image}").convert('RGB')
sr_image = model.predict(image) sr_image = model.predict(image)
sr_image.save(f'results/{i}.png') sr_image.save(f'results/{i}.png')
return 1
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment