Commit 7ab91d9e authored by d8ahazard's avatar d8ahazard

Update bsrgan_model.py

parent 3665551b
...@@ -69,7 +69,6 @@ class UpscalerBSRGAN(modules.upscaler.Upscaler): ...@@ -69,7 +69,6 @@ class UpscalerBSRGAN(modules.upscaler.Upscaler):
if not os.path.exists(filename) or filename is None: if not os.path.exists(filename) or filename is None:
print(f"BSRGAN: Unable to load model from {filename}", file=sys.stderr) print(f"BSRGAN: Unable to load model from {filename}", file=sys.stderr)
return None return None
print("Loading %s from %s" % (self.model_path, filename))
model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=4) # define network model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=4) # define network
model.load_state_dict(torch.load(filename), strict=True) model.load_state_dict(torch.load(filename), strict=True)
model.eval() model.eval()
......
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