From 9ff8100ea73ae58aed137166d1b72413fb74670c Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Fri, 30 Sep 2022 17:51:07 -0400 Subject: [PATCH] realesrgan cpu fix hopefully --- scripts/latent_imagenet_diffusion.ipynb | 4 ++-- webui.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/latent_imagenet_diffusion.ipynb b/scripts/latent_imagenet_diffusion.ipynb index 607f94f..82195aa 100644 --- a/scripts/latent_imagenet_diffusion.ipynb +++ b/scripts/latent_imagenet_diffusion.ipynb @@ -14,7 +14,7 @@ "language_info": { "name": "python" }, - "accelerator": "GPU" + "accelerator": "CPU" }, "cells": [ { @@ -426,4 +426,4 @@ "outputs": [] } ] -} \ No newline at end of file +} diff --git a/webui.py b/webui.py index 96db0a8..f7e535d 100644 --- a/webui.py +++ b/webui.py @@ -1295,7 +1295,7 @@ def upscale_with_realesrgan(image, RealESRGAN_upscaling, RealESRGAN_model_index) scale=info.netscale, model_path=info.location, model=model, - half=True + half=False ) upsampled = upsampler.enhance(np.array(image), outscale=RealESRGAN_upscaling)[0]